File manipulation functions
303
Returns
An array of six integers that quantify the number of the following elements:
■
XHTML errors that Dreamweaver fixed
■
The
map
elements that do not have an
id
attribute and cannot be fixed
■
The
script
elements that do not have a
type
attribute and cannot be fixed
■
The
style
elements that do not have a
type
attribute and cannot be fixed
■
The
img
elements that do not have an
alt
attribute and cannot be fixed
■
The
area
elements that do not have an
alt
attribute and cannot be fixed
dom.convertToXHTML()
Availability
Dreamweaver MX.
Description
Parses the HTML into a DOM tree, inserts missing items that are required for XHTML,
cleans up the tree, and then writes the tree as clean XHTML. The missing directives,
declarations, elements, and attributes that the
convertToXHTML()
function adds to the DOM
tree, as necessary, include the following items:
■
An XML directive
■
A
doctype
declaration
■
The
xmlns
attribute in the
html
element
■
A
head
section
■
A
title
element
■
A
body
section
During the conversion, the
dom.convertToXHTML()
function converts pure HTML tags and
attributes to lowercase, writes HTML tags and attributes with correct XHTML syntax, and
adds missing HTML attributes where it can. This function treats third-party tags and
attributes according to the settings in the Preferences dialog box.
If the document is a template, the
dom.convertToXHTML()
function alerts the user but does
not perform the conversion.
Arguments
None.
000_DW_API_Print.book Page 303 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...