2.1.3 [DOM Level 2 - HTML] Section 1.5, Objects related to HTML documents

V0026:

The specification states:

 Interface HTMLDocument 
 An HTMLDocument is the root of the HTML hierarchy and holds the entire content. 
 Besides providing access to the hierarchy, it also provides some convenience 
 methods for accessing certain sets of information from the document.
  
 The following properties have been deprecated in favor of the corresponding ones 
 for the BODY element:
alinkColor 
background 
bgColor 
fgColor 
linkColor
vlinkColor  

All Document Modes (All Versions)

The background attribute of the HTMLDocument interface is not supported.

Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)

Setting the body element of the HTMLDocument interface to a frameset is not supported. 

V0027:

The specification states:

 URL of type DOMString, readonly 
 The absolute URI of the document.

Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)

The uppercase URL attribute name of the HTMLDocument interface is implemented as a lowercase name (url).

V0029:

The specification states:

 getElementsByName 
 With documents, this method returns the (possibly empty) collection of elements 
 whose name value is given by elementName. In XHTML 1.0 documents, this methods only 
 return the (possibly empty) collection of form controls with matching name. This 
 method is case sensitive. 
  
 Parameters 
 ElementName of type DOMString 
 The name attribute value for an element.
  
 Return Value 
 NodeList
 The matching elements.
  
 No Exceptions

Quirks Mode and IE7 Mode (All Versions)

The getElementsByName method matches on the name, id, and uniquename attributes, instead of on only the name attribute. Only one matched element is included in the node list.

IE8 Mode and IE9 Mode (All Versions)

The getElementsByName method matches on the name, id, and uniquename attributes, instead of on only the name attribute. All matched elements are included in the node list.

Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, and IE10 Mode (All Versions)

The getElementsByName method does not match expando attributes on an element. For example, name is not an attribute on div elements, therefore it does not return a match on document.getElementsByName('testDiv') when <DIV name="testDiv"></DIV>.

Show: