2.2.3 [DOM Level 2 - HTML] Section 1.6.5, Object definitions
C0003:
-
profile of type DOMString URI designating a metadata profile. See the profile attribute definition in HTML 4.01.
Quirks and IE7 Mode (All Versions)
The profile attribute that is returned is the same as what the author has set in the HEAD element markup.
IE8 Mode and IE9 Mode (All Versions)
The profile attribute of the HTMLHeadElement
interface returns a URI with a trailing slash if missing. For example, "http://www.contoso.com
" is returned as "http://www.contoso.com/"
C0005:
-
aLink of type DOMString Color of active links (after mouse-button down, but before mouse-button up). See the alink attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
All Document Modes (All Versions)
If the value of the alink attribute for a LINK
element is specified as a color string (such as black
),
the value is converted and stored as a hexadecimal RGB color value in the aLink
attribute of the HTMLBodyElement interface.
C0006:
-
background of type DOMString URI of the background texture tile image. See the background attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Quirks and IE7 Mode (All Versions)
The background attribute of the HTMLBodyElement interface is read as a relative path.
IE8 Mode and IE9 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 interface.
C0007:
-
bgColor of type DOMString Document background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)
If the value of the bgcolor attribute for a BODY
element is specified as a color string (such as "black"
),
the value is converted and stored as a hexadecimal RGB color value in the bgColor
attribute of the HTMLBodyElement interface.
C0008:
-
link of type DOMString Color of links that are not active and unvisited. See the link attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)
If the value of the link attribute for a BODY
element is specified in HTML as a color string (such as black
),
the value is converted and stored as a hexadecimal RGB color value in the link
attribute of the HTMLBodyElement interface.
C0009:
-
vLink of type DOMString Color of links that have been visited by the user. See the vlink attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)
If the value of the vlink attribute for a BODY
element is specified in HTML as a color string (such as black
),
the value is converted and stored as a hexadecimal RGB color value in the vLink
attribute of the HTMLBodyElement interface.
C0010:
-
action of type DOMString Server-side form handler. See the action attribute definition in HTML 4.01.
Quirks and IE7 Mode (All Versions)
The value of the action attribute of the HTMLFormElement interface is preserved and is not converted into an absolute URI.
IE8 Mode and IE9 Mode (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 interface.
C0011:
-
length of type unsigned long, modified in DOM Level 2 The number of options in this SELECT. Exceptions on setting DOMException NOT_SUPPORTED_ERR: if setting the length is not allowed by the implementation.
All Document Modes (All Versions)
Setting the value of the length attribute is allowed. The number of options in this SELECT element is increased or decreased (added or removed from the end of the options collection) as required.
C0012:
-
selectedIndex of type long The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.
All Document Modes (All Versions)
By default, the first option of a SELECT element is
selected (the selected property on the first OPTION element is
set to TRUE
). If the multiple
attribute of the SELECT element is set, the default value of selectedIndex
is -1. If the multiple
attribute is not
set, selectedIndex never returns -1.
C0013:
-
size of type long Number of visible rows. See the size attribute definition in HTML 4.01.
All Document Modes (All Versions)
If no value is specified for the size attribute of
the SELECT element (or the value is not a number) then the size
attribute of the HTMLSelectElement interface is assigned the value 0
.
C0014:
-
tabIndex of type long Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.01.
Quirks and IE7 Mode (All Versions)
The tabIndex attribute
of the HTMLSelectElement interface accepts any invalid value. The value
of the attribute defaults to 0
if no value is
specified in HTML.
IE8 Mode and IE9 Mode (All Versions)
If no value, or an
invalid value, is specified for the tabindex attribute of a SELECT
element, the tabIndex attribute of the HTMLSelectElement
interface defaults to a value of 0
.
C0015:
-
Interface HTMLInputElement Form control. Note: Depending upon the environment in which 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.
All Document Modes (All Versions)
The value attribute of the HTMLInputElement
interface is read-only when its value is set to file
.
When its value is set to password
, the password
value is not masked.
All Document Modes (All Versions)
Setting the type attribute of the HTMLInputElement interface to an invalid value throws a JScript Error object with a description of "Invalid argument" and an error number of 0x80070057 (-2147024809).
C0016:
-
checked of type boolean When the type attribute of the element has the value "radio" or "checkbox", this represents the current state of the form control, in an interactive user agent. Changes to this attribute change the state of the form control, but do not change the value of the HTML checked attribute of the INPUT element. Note: During the handling of a click event on an input element with a type attribute that has the value "radio" or "checkbox", some implementations may change the value of this property before the event is being dispatched in the document. If the default action of the event is canceled, the value of the property may be changed back to its original value. This means that the value of this property during the handling of click events is implementation dependent.
All Document Modes (All Versions)
If the default action of the click event is canceled, the value of the checked attribute of the HTMLInputElement interface is changed back to its original value.
The value of the checked attribute of the HTMLInputElement interface changes before a click event is dispatched.
C0018:
-
shape of type DOMString The shape of the active area. The coordinates are given by coords. See the shape attribute definition in HTML 4.01.
IE8 Mode and IE9 Mode (All Versions)
If the value of the
shape attribute for the A element is set to default
, the shape attribute of the HTMLAnchorElement
interface is set to rect
.
C0019:
-
longDesc of type DOMString URI designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.01.
IE8 Mode and IE9 Mode (All Versions)
When the value of the longdesc attribute for the IMAGE 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 HTMLImageElement interface.
C0020:
-
src of type DOMString URI designating the source of this image. See the src attribute definition in HTML 4.01.
IE8 Mode and IE9 Mode (All Versions)
When the value of the src attribute for the IMAGE 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 HTMLImageElement.
C0021:
-
data of type DOMString A URI specifying the location of the object's data. See the data attribute definition in HTML 4.01.
Quirks Mode and IE7 Mode (All Versions)
The data attribute of the HTMLObjectElement interface returns a URI as a relative path.
IE8 Mode and IE9 Mode (All Versions)
The data attribute of the HTMLObjectElement interface returns a URI as an absolute path.
C0022:
-
standby of type DOMString Message to render while loading the object. See the standby attribute definition in HTML 4.01.
IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)
The standby attribute is not supported on the HTMLObjectElement interface.
C0024:
-
href of type DOMString The URI of the linked resource. See the href attribute definition in HTML 4.01.
All Document Modes (All Versions)
A slash (/) is appended to the end of the URI if a file name is not specified.
IE8 Mode and IE9 Mode (All Versions)
A slash (/) is appended to the end of the href attribute of the HTMLAreaElement interface when the href attribute does not end with a slash.
C0025:
-
interface HTMLAreaElement : HTMLElement shape of type DOMString. The shape of the active area. The coordinates are given by coords. See the shape attribute definition in HTML 4.01.
Quirks Mode and IE7 Mode (All Versions)
The value of the shape attribute of the HTMLAreaElement interface is converted to uppercase.
IE8 Mode and IE9 Mode (All Versions)
If the value of the shape attribute for the AREA
element is set to default
in markup, the shape
attribute of the HTMLAreaElement interface is set to rect
.
C0026:
-
src of type DOMString URI designating an external script.
IE8 Mode and IE9 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 interface.
C0027:
-
bgColor of type DOMString Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
If the value of the bgcolor attribute for a TABLE
element is specified as a color string (such as black
),
the value is converted and stored as a hexadecimal RGB color value in the bgColor
attribute of the HTMLTableElement interface.
C0030:
-
bgColor of type DOMString Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)
If the value of the
bgcolor attribute for a TH or TD element is specified as a
color string (such as black
), the value is
converted and stored as a hexadecimal RGB color value in the bgColor
attribute of the HTMLTableCellElement interface.
C0031:
-
height of type DOMStringCell height. See the height attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
All Document Modes (All Versions)
The height
attribute of the HTMLTableCellElement interface is serialized with the "px"
suffix removed if present.
C0033:
-
longDesc of type DOMString URI [IETF RFC 2396] designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.01.
IE8 Mode and IE9 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 interface.
C0034:
-
src of type DOMString A URI [IETF RFC 2396] designating the initial frame contents. See the src attribute definition in HTML 4.01.
IE8 Mode and IE9 Mode (All Versions)
When the value of the src 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 src attribute of the HTMLIFrameElement interface.