Export (0) Print
Expand All

2.1.3 [DOM Level 1] Section 2.5.5, Object definitions

V0030:

The specification states:

interface HTMLSelectElement : HTMLElement 

Method
add Add a new element to the collection of OPTION elements for this SELECT. 

Parameters 
element  The element to add. 
before  The element to insert before, or NULL for the head of the list.

This method returns nothing.

This method raises no exceptions.

Quirks Mode and IE7 Mode (All Versions)

The add method of the HTMLSelectElement interface is not supported.

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

The add method of the HTMLSelectElement appends the element to the bottom of the list when the before parameter is null.

V0031:

The specification states:

IDL Definition 
interface HTMLOptionElement : HTMLElement {
  readonly attribute  HTMLFormElement  form;
           attribute  boolean          defaultSelected;
  readonly attribute  DOMString        text;
           attribute  long             index;
           attribute  boolean          disabled;
           attribute  DOMString        label;
  readonly attribute  boolean          selected;
           attribute  DOMString        value;
};

All Document Modes (All Versions)

The text attribute of the HTMLOptionElement interface is not read-only.

V0032:

The specification states:

Attribute
align 
Aligns this object (vertically or horizontally) with respect to its surrounding 
text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

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

When specified in HTML, the align attribute of the INPUT element is ignored and the DOM align attribute returns an empty string.

V0033:

The specification states:

Attribute
useMap 
Use client-side image map. See the usemap attribute definition in HTML 4.0.

All Document Modes (All Versions)

The value of the useMap attribute is set to the value of the usemap attribute in HTML. This string is not constrained to the name of the associated MAP element.

V0034:

The specification states:

Attribute
value 
Reset sequence number when used in OL See the value attribute definition in 
HTML 4.0. This attribute is deprecated in HTML 4.0.

All Document Modes (All Versions)

The value attribute of an LI element cannot be used to reset the sequence number in an OL element.

V0035:

The specification states:

IDL Definition 
interface HTMLPreElement : HTMLElement {
           attribute  long                 width;
};

All Document Modes (All Versions)

The width attribute of a PRE element is treated as a string.

V0036:

The specification states:

interface HTMLBaseFontElement : HTMLElement 
interface HTMLFontElement : HTMLElement

Attribute
color 
Font color. See the color attribute definition in HTML 4.0. This attribute is 
deprecated in HTML 4.0.

All Document Modes (All Versions)

If the value of the color attribute is specified as a color string (such as black) in HTML, the value is converted and stored as a hexadecimal RGB color value in the DOM color attribute.

V0037:

The specification states:

IDL Definition 
interface HTMLAppletElement : HTMLElement {
attribute  DOMString            align;
attribute  DOMString            alt;
attribute  DOMString            archive;
attribute  DOMString            code;
attribute  DOMString            codeBase;
attribute  DOMString            height;
attribute  DOMString            hspace;
attribute  DOMString            name;
attribute  DOMString            object;
attribute  DOMString            vspace;
attribute  DOMString            width;};

All Document Modes (All Versions)

The following variations apply:

  • The value of the hspace attribute is of type number.

  • The value of the vspace attribute is of type number.

  • The value of the object attribute is of type object.

V0038:

The specification states:

Attribute  
object 
Serialized applet file. See the object attribute definition in HTML 4.0. This 
attribute is deprecated in HTML 4.0.

All Document Modes (All Versions)

The object attribute of the APPLET element is not supported.

V0039:

The specification states:

interface HTMLScriptElement : HTMLElement 

Attribute  
src
URI designating an external script. See the src attribute definition in HTML 4.0.

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

When the value of the src attribute for the SCRIPT element is specified in HTML as a relative URI, the value is converted and stored as an absolute URI in the src attribute of the HTMLScriptElement.

V0041:

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.

All Document Modes (All Versions)

If the value of the bgcolor attribute is specified as a color string (such as black) in HTML, the value is converted and stored as a hexadecimal RGB color value in the DOM bgColor attribute.

V0042:

The specification states:

Attribute 
align
Horizontal alignment of data within cells of this row. See the align attribute 
definition in HTML 4.0.

All Document Modes (All Versions)

The char and justify values are not supported for the align attribute of a TR element.

V0043:

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 on the TR element is not supported. The ch attribute can be written to and read from the DOM, but it does not change the alignment of text within a cell.

V0044:

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 on the TR element is not supported. The ch attribute can be written to and read from the DOM, but it does not change the offset of the alignment.

V0045:

The specification states:

Attribute 
rowSpan
Number of rows spanned by cell. See the rowspan attribute definition in HTML 4.0.

Quirks Mode and IE7 Mode (All Versions)

If the rowspan attribute specified on a cell is greater than the number of rows in a table, the value of this attribute is modified to become equal to the number of rows in the table.

V0047:

The specification states:

Attribute
marginHeight 
Frame margin height, in pixels. See the marginheight attribute definition in HTML 4.0.

All Document Modes (All Versions)

The marginHeight attribute is an expando attribute. If the marginheight attribute and value are declared in markup, the value is stored and returned by the marginHeight attribute. If no value is specified, marginHeight is undefined.

V0048:

The specification states:

marginWidth
Frame margin width, in pixels. See the marginwidth attribute definition in HTML 4.0.

All Document Modes (All Versions)

marginWidth is an expando attribute. If the marginwidth attribute and value are declared in markup, the value is stored and returned by the marginWidth attribute. If no value is specified, marginWidth is undefined.

V0049:

The specification states:

name 
The frame name (object of the target attribute). See the name attribute definition in HTML 4.0.

All Document Modes (All Versions)

name is an expando attribute. If the name attribute and value are declared in markup, the value is stored and returned by the name attribute. If no value is specified, name returns an empty string in the DOM.

V0050:

The specification states:

Attribute
scrolling 
Specify whether or not the frame should have scrollbars. See the 
scrolling attribute definition in HTML 4.0.

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

The scrolling attribute is an expando attribute. If the scrolling attribute and value are declared in markup, the value is stored and returned by the scrolling attribute. If no value is specified, scrolling is undefined in the DOM.

V0051:

The specification states:

Attribute
longDesc 
URI designating a long description of this image or frame. See the longdesc 
attribute definition in HTML 4.0.

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

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

V0052:

The specification states:

Attribute
src
A URI designating the initial frame contents. See the src attribute definition in HTML 4.0.

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

The src attribute is treated as an absolute URI. If no trailing slash is provided, the slash is included when the attribute is fixed up to become an absolute URI before being applied to the DOM property.

Show:
© 2014 Microsoft