2.2.4 [DOM Level 1] Section 2.5.5, Object definitions

C0009:

The specification states:

 Attributes
 aLink 
 Color of active links (after mouse-button down, but before mouse-button up). See 
 the alink attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

Quirks Mode and IE7 Mode (All Versions)

The value of the aLink attribute is always converted into a hexadecimal RGB value when it is stored in the DOM or retrieved using the getAttribute method.

C0010:

The specification states:

 Attribute
 background 
 URI of the background texture tile image. See the background attribute definition 
 in HTML 4.0. This attribute is deprecated in HTML 4.0.

IE8 Mode (All Versions)

When the value of the background attribute for the BODY element is specified in HTML as a relative URI, the value is converted and stored as an absolute URI in the background attribute of the HTMLBodyElement.

C0018:

The specification states:

 Attribute
 action 
 Server-side form handler. See the action attribute definition in HTML 4.0.

IE8 Mode and IE9 (All Versions)

When the value of the action attribute for the FORM element is specified in HTML as a relative URI, the value is converted and stored as an absolute URI in the action attribute of the HTMLFormElement. If not already present, a slash is appended to the end of the URI when a file name is not specified.

C0024:

The specification states:

 Attribute
 index 
 The index of this OPTION in its parent SELECT.

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

The index attribute is read-only.

C0025:

The specification states:

 Form control. 
 Note. Depending upon the environment the page is being viewed, the value property 
 may be read-only for the file upload input type. For the "password" input type, the 
 actual value returned may be masked to prevent unauthorized use. See the INPUT 
 element definition in HTML 4.0.

All Document Modes (All Versions)

The following clarifications apply:

  • The value attribute cannot be set or retrieved if the type attribute of the INPUT element has a value of file.

  • If an INPUT element has a type attribute with a value of password, the text field is not masked when the value for the field is retrieved from the value attribute of HTMLInputElement.

C0026:

The specification states:

 Attribute
 type 
 The type of button. See the type attribute definition in HTML 4.0.

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

The type attribute of a button cannot be set.

C0027:

The specification states:

 Attribute
 value 
 The current form control value. See the value attribute definition in HTML 4.0.

Quirks Mode and IE7 Mode (All Versions)

Text contained by a BUTTON element is returned by the value attribute of HTMLButtonElement. If no text is contained by the BUTTON element, the value of the value attribute for the BUTTON element is returned. If no value is assigned or the value attribute is not specified for the BUTTON element, the value attribute of HTMLButtonElement returns an empty string.

C0029:

The specification states:

 Attribute
 href 
 The URI of the linked resource. See the href attribute definition in HTML 4.0.

IE8 Mode and IE9 (All Versions)

When the value of the href attribute for the A element is specified in HTML as a relative URI, the value is converted and stored as an absolute URI in the href attribute of the HTMLAnchorElement. If not already present, a slash is appended to the end of the URI when a file name is not specified.

C0039:

The specification states:

 IDL Definition 
 interface HTMLParamElement : HTMLElement {
            attribute  DOMString            name;
            attribute  DOMString            type;
            attribute  DOMString            value;
            attribute  DOMString            valueType;
 };

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

If the name attribute is not provided on the PARAM element by the author, the element is not created in the DOM by the HTML parser.

C0040:

The specification states:

 Attribute
 valueType 
 Information about the meaning of the value attribute value. See the valuetype 
 attribute definition in HTML 4.0.

Quirks Mode and IE7 Mode (All Versions)

The default value for the valueType attribute is an empty string.

C0043:

The specification states:

 Attribute 
 shape 
 The shape of the active area. The coordinates are given by coords. See the shape 
 attribute definition in HTML 4.0

Quirks Mode and IE7 Mode (All Versions)

Shape attribute elements are capitalized when read from the DOM. For example, HTML markup shape="circle" is read by the DOM as CIRCLE.

C0046:

The specification states:

 Attribute 
 ch 
 Alignment character for cells in a column. See the char attribute definition in HTML 4.0.

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

The ch attribute is always returned as an empty string.

C0047:

The specification states:

 Attribute 
 chOff 
 Offset of alignment character. See the charoff attribute definition in HTML 4.0.

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

The chOff attribute is always returned as an empty string.

C0049:

The specification states:

 Method
 insertRow Insert a row into this section. 
 Parameters 
 index  The row number where to insert a new row.
 Return Value 
 The newly created row. 
 This method raises no exceptions.

All Document Modes (All Versions)

Specifying a value of -1 for the index parameter causes the insertRow method to append a new row to the bottom of the table.

C0050:

The specification states:

 Method 
 deleteRow Delete a row from this section. 
 Parameters 
 index  The index of the row to be deleted.
 This method returns nothing.
 This method raises no exceptions.

All Document Modes (All Versions)

Specifying a value of -1 for the index parameter causes the deleteRow method to remove the last row of the table. This behavior is expected in DOM L2 but not in DOM L1.

C0052:

The specification states:

 Attribute 
 bgColor
 Cell background color. See the bgcolor attribute definition in HTML 4.0. This 
 attribute is deprecated in HTML 4.0.

Quirks Mode and IE7 Mode (All Versions)

The value of the bgColor attribute in a TD element is always converted to a hexadecimal RGB value when it is stored in the DOM. For example, setting the bgColor attribute of a TD element to blue in HTML yields a value of #0000FF for the bgColor attribute when retrieved using the getAttribute method.   

IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

The value of the bgColor attribute in a TD element remains the same as the author's original setting in HTML. For example, setting the bgColor attribute of a TD element to blue in HTML yields a value of blue when using the getAttribute method to retrieve the color. 

However, the value of the bgColor property of the HTMLFontElement interface is stored in the DOM as a hexadecimal RGB value (for example, setting it to blue in HTML yields #0000FF for the color when retrieved using TD.bgColor).

C0053:

The specification states:

 Attribute 
 ch 
 Alignment character for cells in a column. See the char attribute definition in HTML 4.0.

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

The char attribute is not associated with the ch attribute in the DOM.

C0054:

The specification states:

 Attribute 
 chOff
 Offset of alignment character. See the charoff attribute definition in HTML 4.0.

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

The chOff attribute is not supported.

C0055:

The specification states:

 Attribute 
 height 
 Cell height. See the height attribute definition in HTML 4.0. This attribute is 
 deprecated in HTML 4.0.

All Document Modes (All Versions)

The value of the height attribute is serialized by dropping the "px" suffix when set in the DOM. For example, writing <td height="100px"> in markup, accessing td.height from the DOM, returns 100.  However, percentage values are unmodified. For example, with <td height="100%"> in markup, the DOM returns 100%.

Show: