User Guide
268 Chapter 14: Document
Returns
A string that specifies the current parsing mode: "html", "xml", "css", or "text".
dom.hideInfoMessagePopup()
Availability
Dreamweaver MX 2004.
Description
Hides the tooltip-like message, if it is visible, for the document window.
Arguments
None.
Returns
Nothing.
See also
“dom.showInfoMessagePopup()” on page 269.
dom.runValidation()
Availability
Dreamweaver MX, optional arguments added in Dreamweaver MX 2004.
Description
Runs the Validator on a single specified document (this function is similar to
site.runValidation()). The Validator checks the document for conformance with the language
specified in the document doctype (such as HTML 4.0 or HTML 3.2) and the language specified
by the server model (such as ColdFusion or ASP). If the document has no doctype, then the
Validator uses the language setting specified in the Validator section of the Preferences dialog box.
Arguments
{controlString}, {bOpenResultsWindow}, {bShowInfoMessage}
• The controlString argument is an optional string with four possible values: an empty string,
"xml", "auto-explicit", or "auto-implicit".
■ If the argument is an empty string, the Validator performs a default validation. If the
argument is
"xml", the Validator validates the document as XML.
■ If the argument is "auto-explicit" or "auto-implicit", Dreamweaver performs an
automatic validation (also known as an inline validation), which underlines errors in the
Code view instead of opening the Validation results window (see
“dom.source.getValidationErrorsForOffset()” on page 415 and
“dom.getAutoValidationCount()” on page 409).
■ If the controlString argument is "auto-explicit", Dreamweaver will prompt the user
to save an unsaved document before running the validation.
■ If the controlString argument is "auto-implicit", the validation will fail without
notifying the user that the current document is unsaved.
000_DW_API_Print.book Page 268 Wednesday, August 20, 2003 9:14 AM