W3C

HTML 5.1

W3C Working Draft,

11. Obsolete features

11.1. Obsolete but conforming features

Features listed in this section will trigger warnings in conformance checkers.

Authors should not specify a border attribute on an img element. If the attribute is present, its value must be the string "0". CSS should be used instead.

Authors should not specify a language attribute on a script element. If the attribute is present, its value must be an ASCII case-insensitive match for the string "JavaScript" and either the type attribute must be omitted or its value must be an ASCII case-insensitive match for the string "text/javascript". The attribute should be entirely omitted instead (with the value "JavaScript", it has no effect), or replaced with use of the type attribute.

Authors should not specify the name attribute on a elements. If the attribute is present, its value must not be the empty string and must neither be equal to the value of any of the IDs in the element’s home subtree other than the element’s own id, if any, nor be equal to the value of any of the other name attributes on a elements in the element’s home subtree. If this attribute is present and the element has an id, then the attribute’s value must be equal to the element’s id. In earlier versions of the language, this attribute was intended as a way to specify possible targets for fragment identifiers in URLs. The id attribute should be used instead.

Authors should not, but may despite requirements to the contrary elsewhere in this specification, specify the maxlength and size attributes on input elements whose type attributes are in the Number state. One valid reason for using these attributes regardless is to help legacy user agents that do not support input elements with type="number" to still render the text field with a useful width.

In the HTML syntax, specifying a DOCTYPE that is an obsolete permitted DOCTYPE will also trigger a warning.

11.1.1. Warnings for obsolete but conforming features

To ease the transition from HTML Transitional documents to the language defined in this specification, and to discourage certain features that are only allowed in very few circumstances, conformance checkers must warn the user when the following features are used in a document. These are generally old obsolete features that have no effect, and are allowed only to distinguish between likely mistakes (regular conformance errors) and mere vestigial markup or unusual and discouraged practices (these warnings).

The following features must be categorized as described above:

Conformance checkers must distinguish between pages that have no conformance errors and have none of these obsolete features, and pages that have no conformance errors but do have some of these obsolete features.

For example, a validator could report some pages as "Valid HTML" and others as "Valid HTML with warnings".

11.2. Non-conforming features

Elements in the following list are entirely obsolete, and must not be used by authors:

applet

Use embed or object instead.

acronym#elementdef-acronymReferenced in:11.3.4. Other elements, attributes and APIs

Use abbr instead.

bgsound#elementdef-bgsoundReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments11.3.4. Other elements, attributes and APIs

Use audio instead.

dir#elementdef-dirReferenced in:8.2.3.2. The stack of open elements10.3.10. Margin collapsing quirks11.3.4. Other elements, attributes and APIs (2) (3)

Use ul instead.

frame

frameset

noframes#elementdef-noframesReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments8.4. Parsing HTML fragments

Either use iframe and CSS instead, or use server-side includes to generate complete pages with the various invariant parts merged in.

isindex#elementdef-isindexReferenced in:11.3.4. Other elements, attributes and APIs

Use an explicit form and text field combination instead.

listing#elementdef-listingReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments10.3.10. Margin collapsing quirks11.3.4. Other elements, attributes and APIs

Use pre and code instead.

nextid#elementdef-nextidReferenced in:11.3.4. Other elements, attributes and APIs

Use GUIDs instead.

noembed#elementdef-noembedReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments8.4. Parsing HTML fragments

Use object instead of embed when fallback is necessary.

plaintext#elementdef-plaintextReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments8.4. Parsing HTML fragments10.3.10. Margin collapsing quirks11.3.4. Other elements, attributes and APIs

Use the "text/plain" MIME type instead.

rb

rtc

Providing the ruby base directly inside the ruby element or using nested ruby elements is sufficient.

strike#elementdef-strikeReferenced in:8.2.3.2. The stack of open elements

Use del instead if the element is marking an edit, otherwise use s instead.

xmp#elementdef-xmpReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments8.4. Parsing HTML fragments11.3.4. Other elements, attributes and APIs

Use pre and code instead, and escape "<" and "&" characters as "&lt;" and "&amp;" respectively.

basefont#elementdef-basefontReferenced in:8.2.3.2. The stack of open elements8.3. Serializing HTML fragments

big#elementdef-bigReferenced in:8.2.3.2. The stack of open elements11.2. Non-conforming features

blink#elementdef-blinkReferenced in:11.3.4. Other elements, attributes and APIs

center#elementdef-centerReferenced in:8.2.3.2. The stack of open elements10.3.3. Flow content

font#elementdef-fontReferenced in:8.2.3.2. The stack of open elements10.3.4. Phrasing content (2) (3) (4)11.3.4. Other elements, attributes and APIs (2)

marquee

multicol#elementdef-multicolReferenced in:11.3.4. Other elements, attributes and APIs

nobr#elementdef-nobrReferenced in:8.2.3.2. The stack of open elements

spacer#elementdef-spacerReferenced in:11.3.4. Other elements, attributes and APIs

tt#elementdef-ttReferenced in:8.2.3.2. The stack of open elements11.2. Non-conforming features

Use appropriate elements or CSS instead.

Where the tt element would have been used for marking up keyboard input, consider the kbd element; for variables, consider the var element; for computer code, consider the code element; and for computer output, consider the samp element.

Similarly, if the big element is being used to denote a heading, consider using the h1 element; if it is being used for marking up important passages, consider the strong element; and if it is being used for highlighting text for reference purposes, consider the mark element.

See also the text-level semantics usage summary for more suggestions with examples.


The following attributes are obsolete (though the elements are still part of the language), and must not be used by authors:

charset on a elements

charset on link elements

Use an HTTP Content-Type header on the linked resource instead.

coords on a elements

shape on a elements

Use area instead of a for image maps.

methods on a elements

methods on link elements

Use the HTTP OPTIONS feature instead.

name#element-attrdef-a-nameReferenced in:11.1. Obsolete but conforming features (2)11.1.1. Warnings for obsolete but conforming features on a elements (except as noted in the previous section)

name on embed elements

name#element-attrdef-img-nameReferenced in:4.10.3. The form element (2) on img elements

name on option elements

Use the id attribute instead.

rev on a elements

rev on link elements

Use the rel attribute instead, with an opposite term. (For example, instead of rev="made", use rel="author".)

urn on a elements

urn on link elements

Specify the preferred persistent identifier using the href attribute instead.

accept on form elements

Use the accept attribute directly on the input elements instead.

hreflang on area elements

type on area elements

These attributes do not do anything useful, and for historical reasons there are no corresponding IDL attributes on area elements. Omit them altogether.

nohref on area elements

Omitting the href attribute is sufficient; the nohref attribute is unnecessary. Omit it altogether.

profile on head elements

When used for declaring which meta terms are used in the document, unnecessary; omit it altogether, and register the names.

When used for triggering specific user agent behaviors: use a link element instead.

version on html elements

Unnecessary. Omit it altogether.

ismap on input elements

Unnecessary. Omit it altogether. All input elements with a type attribute in the image button state are processed as server-side image maps.

usemap on input elements

Use img instead of input for image maps.

longdesc on iframe elements

lowsrc on img elements

Use a progressive JPEG image (given in the src attribute), instead of using two separate images.

target on link elements

Unnecessary. Omit it altogether.

scheme on meta elements

Use only one scheme per field, or make the scheme declaration part of the value.

archive on object elements

classid on object elements

code on object elements

codebase on object elements

codetype on object elements

Use the data and type attributes to invoke plugins. To set parameters with these names in particular, the param element can be used.

declare on object elements

Repeat the object element completely each time the resource is to be reused.

standby on object elements

Optimize the linked resource so that it loads quickly or, at least, incrementally.

type on param elements

valuetype on param elements

Use the name and value attributes without declaring value types.

language#element-attrdef-script-languageReferenced in:11.1. Obsolete but conforming features11.1.1. Warnings for obsolete but conforming features on script elements (except as noted in the previous section)

Use the type attribute instead.

event on script elements

for on script elements

Use DOM events mechanisms to register event listeners. [DOM]

media on source elements

Use script to select the media resource(s) to use.

datapagesize on table elements

Unnecessary. Omit it altogether.

summary on table elements

Use one of the §4.9.1.1 Techniques for describing tables given in the table section instead.

abbr on td elements

Use text that begins in an unambiguous and terse manner, and include any more elaborate text after that. The title attribute can also be useful in including more detailed text, so that the cell’s contents can be made terse. If it’s a heading, use th (which has an abbr attribute).

axis on td and th elements

Use the scope attribute on the relevant th.

scope#element-attrdef-td-scopeReferenced in:4.9.12.2. Forming relationships between data cells and header cells (2) (3) (4) (5) (6) on td elements

Use th elements for heading cells.

datasrc on a, applet, button, div, frame, iframe, img, input, label, legend, marquee, object, option, select, span, table, and textarea elements

datafld on a, applet, button, div, fieldset, frame, iframe, img, input, label, legend, marquee, object, param, select, span, and textarea elements

dataformatas on button, div, input, label, legend, marquee, object, option, select, span, and table elements

Use script and a mechanism such as XMLHttpRequest to populate the page dynamically. [XHR]

alink#element-attrdef-body-alinkReferenced in:10.3.2. The page on body elements

bgcolor#element-attrdef-body-bgcolorReferenced in:10.3.2. The page on body elements

bottommargin on body elements

leftmargin on body elements

link#element-attrdef-body-linkReferenced in:10.3.2. The page on body elements

marginheight on body elements

marginwidth on body elements

rightmargin on body elements

text#element-attrdef-body-textReferenced in:10.3.2. The page on body elements

margintop on body elements

vlink#element-attrdef-body-vlinkReferenced in:10.3.2. The page on body elements

clear on br elements

align on caption elements

align on col elements

char on col elements

charoff on col elements

valign on col elements

width on col elements

align#element-attrdef-div-alignReferenced in:10.3.3. Flow content (2) (3) (4) on div elements

compact on dl elements

align on embed elements

hspace on embed elements

vspace on embed elements

align on hr elements

color on hr elements

noshade on hr elements

size on hr elements

width on hr elements

align on h1h6 elements

align on iframe elements

allowtransparency on iframe elements

frameborder on iframe elements

framespacing on iframe elements

hspace on iframe elements

marginheight on iframe elements

marginwidth on iframe elements

scrolling on iframe elements

vspace on iframe elements

align on input elements

border on input elements

hspace on input elements

vspace on input elements

align on img elements

border#element-attrdef-img-borderReferenced in:11.1. Obsolete but conforming features11.1.1. Warnings for obsolete but conforming features on img elements (except as noted in the previous section)

hspace on img elements

vspace on img elements

align on legend elements

type on li elements

compact on menu elements

align on object elements

border on object elements

hspace on object elements

vspace on object elements

compact on ol elements

align on p elements

width on pre elements

align on table elements

bgcolor on table elements

border#element-attrdef-table-borderReferenced in:11.2. Non-conforming features (2)Elements on table elements

bordercolor on table elements

cellpadding on table elements

cellspacing on table elements

frame on table elements

height on table elements

rules on table elements

width on table elements

align on tbody, thead, and tfoot elements

char on tbody, thead, and tfoot elements

charoff on tbody, thead, and tfoot elements

valign on tbody, thead, and tfoot elements

align on td and th elements

bgcolor on td and th elements

char on td and th elements

charoff on td and th elements

height on td and th elements

nowrap on td and th elements

valign on td and th elements

width on td and th elements

align on tr elements

bgcolor on tr elements

char on tr elements

charoff on tr elements

height on tr elements

valign on tr elements

compact on ul elements

type on ul elements

background#element-attrdef-common-backgroundReferenced in:10.3.2. The page10.3.9. Tables on body, table, thead, tbody, tfoot, tr, td, and th elements

Use CSS instead.


The border attribute on the table element can be used to provide basic fallback styling for the purpose of making tables legible in browsing environments where CSS support is limited or absent, such as text-based browsers, WYSIWYG editors, and in situations where CSS support is disabled or the style sheet is lost. Only the empty string and the value "1" may be used as border values for this purpose. Other values are considered obsolete. To regulate the thickness of such borders, authors should instead use CSS.

11.3. Requirements for implementations

11.3.1. The applet#elementdef-appletReferenced in:2.7.2.1. The HTMLAllCollection interface3.1.3. DOM tree accessors (2)6.2.4. Named access on the Window object (2)6.4. Sandboxing8.2.3.2. The stack of open elements (2)8.2.3.3. The list of active formatting elements10.4.1. Embedded content (2)10.4.3. Attributes for embedded content and images (2) (3) (4)11.2. Non-conforming features (2)11.3.1. The applet element (2) (3) (4) (5) (6) (7) (8)11.3.4. Other elements, attributes and APIs element

This feature is in the process of being removed from the Web platform. (This is a long process that takes many years.) Using the applet element at this time is highly discouraged.

The applet element is a Java-specific variant of the embed element. The applet element is now obsoleted so that all extension frameworks (Java, .NET, Flash, etc) are handled in a consistent manner.

When the element matches any of the following conditions, it represents its contents:

Otherwise, the user agent should instantiate a Java Language runtime plugin, and should pass the names and values of all the attributes on the element, in the order they were added to the element, with the attributes added by the parser being ordered in source order, and then a parameter named "PARAM" whose value is null, and then all the names and values of parameters given by param elements that are children of the applet element, in tree order, to the plugin used. If the plugin supports a scriptable interface, the HTMLAppletElement object representing the element should expose that interface. The applet element represents the plugin.

The applet element is unaffected by the CSS display property. The Java Language runtime is instantiated even if the element is hidden with a 'display:none' CSS style.

The applet element must implement the HTMLAppletElement interface.

interface HTMLAppletElement : HTMLElement {
  attribute DOMString align;
  attribute DOMString alt;
  attribute DOMString archive;
  attribute DOMString code;
  attribute DOMString codeBase;
  attribute DOMString height;
  attribute unsigned long hspace;
  attribute DOMString name;
  attribute DOMString _object#dom-htmlappletelement-_objectReferenced in:11.3.1. The applet element; // the underscore is not part of the identifier
  attribute unsigned long vspace;
  attribute DOMString width;
};

The align#dom-htmlappletelement-alignReferenced in:11.3.1. The applet element, alt#dom-htmlappletelement-altReferenced in:11.3.1. The applet element, archive#dom-htmlappletelement-archiveReferenced in:11.3.1. The applet element, code#dom-htmlappletelement-codeReferenced in:11.3.1. The applet element, height#dom-htmlappletelement-heightReferenced in:11.3.1. The applet element, hspace#dom-htmlappletelement-hspaceReferenced in:11.3.1. The applet element, name#dom-htmlappletelement-nameReferenced in:11.3.1. The applet element, object, vspace#dom-htmlappletelement-vspaceReferenced in:11.3.1. The applet element, and width#dom-htmlappletelement-widthReferenced in:11.3.1. The applet element IDL attributes must reflect the respective content attributes of the same name. For the purposes of reflection, the applet element’s object content attribute is defined as containing a URL.

The codeBase#dom-htmlappletelement-codebaseReferenced in:11.3.1. The applet element IDL attribute must reflect the codebase content attribute, which for the purposes of reflection is defined as containing a URL.

11.3.2. The marquee#elementdef-marqueeReferenced in:8.2.3.2. The stack of open elements (2)10.5.11. The marquee element (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17)11.2. Non-conforming features (2) (3)11.3.2. The marquee element (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) element

The marquee element is a presentational element that animates content. CSS transitions and animations are a more appropriate mechanism. [CSS3-ANIMATIONS] [CSS3-TRANSITIONS]

The task source for tasks mentioned in this section is the DOM manipulation task source.

The marquee element must implement the HTMLMarqueeElement interface.

interface HTMLMarqueeElement : HTMLElement {
  attribute DOMString behavior;
  attribute DOMString bgColor;
  attribute DOMString direction;
  attribute DOMString height;
  attribute unsigned long hspace;
  attribute long loop;
  attribute unsigned long scrollAmount;
  attribute unsigned long scrollDelay;
  attribute boolean trueSpeed;
  attribute unsigned long vspace;
  attribute DOMString width;

  attribute EventHandler onbounce;
  attribute EventHandler onfinish;
  attribute EventHandler onstart;

  void start();
  void stop();
};

A marquee element can be turned on#turned-onReferenced in:10.5.11. The marquee element (2) (3) (4)11.3.2. The marquee element (2) or turned off#turned-offReferenced in:11.3.2. The marquee element (2). When it is created, it is turned on.

When the start()#dom-htmlmarqueeelement-startReferenced in:11.3.2. The marquee element method is called, the marquee element must be turned on.

When the stop()#dom-htmlmarqueeelement-stopReferenced in:11.3.2. The marquee element method is called, the marquee element must be turned off.

When a marquee element is created, the user agent must queue a task to fire a simple event named start at the element.


The behavior content attribute on marquee elements is an enumerated attribute with the following keywords (all non-conforming):

Keyword State
scroll scroll#statedef-marquee-behavior-scrollReferenced in:10.5.11. The marquee element11.3.2. The marquee element
slide slide#statedef-marquee-behavior-slideReferenced in:10.5.11. The marquee element
alternate alternate#statedef-marquee-behavior-alternateReferenced in:10.5.11. The marquee element11.3.2. The marquee element

The missing value default is the scroll state.


The direction#element-attrdef-marquee-directionReferenced in:10.5.11. The marquee element content attribute on marquee elements is an enumerated attribute with the following keywords (all non-conforming):

Keyword State
left left#statedef-marquee-leftReferenced in:11.3.2. The marquee element
right right
up up
down down

The missing value default is the left state.


The truespeed content attribute on marquee elements is a boolean attribute.


A marquee element has a marquee scroll interval#marquee-scroll-intervalReferenced in:10.5.11. The marquee element11.3.2. The marquee element, which is obtained as follows:

  1. If the element has a scrolldelay attribute, and parsing its value using the rules for parsing non-negative integers does not return an error, then let delay be the parsed value. Otherwise, let delay be 85.

  2. If the element does not have a truespeed attribute, and the delay value is less than 60, then let delay be 60 instead.

  3. The marquee scroll interval is delay, interpreted in milliseconds.


A marquee element has a marquee scroll distance#marquee-marquee-scroll-distanceReferenced in:10.5.11. The marquee element, which, if the element has a scrollamount attribute, and parsing its value using the rules for parsing non-negative integers does not return an error, is the parsed value interpreted in CSS pixels, and otherwise is 6 CSS pixels.


A marquee element has a marquee loop count#marquee-loop-countReferenced in:11.3.2. The marquee element (2) (3) (4), which, if the element has a loop content attribute, and parsing its value using the rules for parsing integers does not return an error or a number less than 1, is the parsed value, and otherwise is -1.

The loop#dom-htmlmarqueeelement-loopReferenced in:11.3.2. The marquee element IDL attribute, on getting, must return the element’s marquee loop count; and on setting, if the new value is different than the element’s marquee loop count and either greater than zero or equal to -1, must set the element’s loop content attribute (adding it if necessary) to the valid integer that represents the new value. (Other values are ignored.)

A marquee element also has a marquee current loop index#marquee-current-loop-indexReferenced in:10.5.11. The marquee element (2)11.3.2. The marquee element (2), which is zero when the element is created.

The rendering layer will occasionally increment the marquee current loop index#increment-the-marquee-current-loop-indexReferenced in:10.5.11. The marquee element (2) (3), which must cause the following steps to be run:

  1. If the marquee loop count is -1, then abort these steps.

  2. Increment the marquee current loop index by one.

  3. If the marquee current loop index is now equal to or greater than the element’s marquee loop count, turn off the marquee element and queue a task to fire a simple event named finish at the marquee element.

    Otherwise, if the behavior attribute is in the alternate state, then queue a task to fire a simple event named bounce at the marquee element.

    Otherwise, queue a task to fire a simple event named start at the marquee element.


The following are the event handlers (and their corresponding event handler event types) that must be supported, as event handler content attributes and event handler IDL attributes, by marquee elements:

Event handler Event handler event type
onbounce bounce
onfinish finish
onstart start

The behavior#dom-htmlmarqueeelement-behaviorReferenced in:11.3.2. The marquee element, direction#dom-htmlmarqueeelement-directionReferenced in:11.3.2. The marquee element, height#dom-htmlmarqueeelement-heightReferenced in:11.3.2. The marquee element, hspace#dom-htmlmarqueeelement-hspaceReferenced in:11.3.2. The marquee element, vspace#dom-htmlmarqueeelement-vspaceReferenced in:11.3.2. The marquee element, and width#dom-htmlmarqueeelement-widthReferenced in:11.3.2. The marquee element IDL attributes must reflect the respective content attributes of the same name.

The bgColor#dom-htmlmarqueeelement-bgcolorReferenced in:11.3.2. The marquee element IDL attribute must reflect the bgcolor content attribute.

The scrollAmount#dom-htmlmarqueeelement-scrollamountReferenced in:11.3.2. The marquee element IDL attribute must reflect the scrollamount content attribute. The default value is 6.

The scrollDelay#dom-htmlmarqueeelement-scrolldelayReferenced in:11.3.2. The marquee element IDL attribute must reflect the scrolldelay content attribute. The default value is 85.

The trueSpeed#dom-htmlmarqueeelement-truespeedReferenced in:11.3.2. The marquee element IDL attribute must reflect the truespeed content attribute.

11.3.3. Frames

The frameset#elementdef-framesetReferenced in:2.7.2.1. The HTMLAllCollection interface3.1.3. DOM tree accessors (2) (3) (4)6.2.4. Named access on the Window object (2)7.1.5.2. Event handlers on elements, Document objects, and Window objects (2) (3)8.2.3.1. The insertion mode8.2.3.2. The stack of open elements8.2.5.4.20. The "in frameset" insertion mode10.6. Frames and framesets (2) (3) (4) (5) (6) (7) (8) (9)11.3.3. Frames (2) (3) (4) (5)11.3.4. Other elements, attributes and APIs (2) element acts as the body element in documents that use frames.

The frameset element must implement the HTMLFrameSetElement interface.

interface HTMLFrameSetElement#htmlframesetelement-htmlframesetelementReferenced in:11.3.3. Frames : HTMLElement {
  attribute DOMString cols;
  attribute DOMString rows;
};
HTMLFrameSetElement implements WindowEventHandlers;

The cols and rows IDL attributes of the frameset element must reflect the respective content attributes of the same name.

The frameset element exposes as event handler content attributes a number of the event handlers of the Window object. It also mirrors their event handler IDL attributes.

The onblur, onerror, onfocus, onload, onresize, and onscroll event handlers of the Window object, exposed on the frameset element, replace the generic event handlers with the same names normally supported by html elements.


The frame#elementdef-frameReferenced in:2.7.2.1. The HTMLAllCollection interface8.2.3.2. The stack of open elements8.3. Serializing HTML fragments10.3.2. The page10.6. Frames and framesets (2) (3) (4) (5)11.2. Non-conforming features (2)11.3.3. Frames (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) (24) (25) element defines a nested browsing context similar to the iframe element, but rendered within a frameset element.

A frame element is said to be an active frame element when it is in a Document.

When a frame element is created as an active frame element, or becomes an active frame element after not having been one, the user agent must create a nested browsing context, and then process the frame attributes for the first time.

When a frame element stops being an active frame element, the user agent must discard the nested browsing context.

Whenever a frame element with a nested browsing context has its src attribute set, changed, or removed, the user agent must process the frame attributes.

When the user agent is to process the frame attributes#process-the-frame-attributesReferenced in:11.3.3. Frames (2) (3) (4), it must run the first appropriate steps from the following list:

If the element has no src attribute specified, and the user agent is processing the frame’s attributes for the first time
Queue a task to fire a simple event named load at the frame element.
Otherwise
  1. If the value of the src attribute is the empty string, let url be the string "about:blank".

    Otherwise, resolve the value of the src attribute, relative to the frame element.

    If that is not successful, then let url be the string "about:blank". Otherwise, let url be the resulting absolute URL.

  2. Navigate the element’s child browsing contextto url.

Any navigation required of the user agent in the process the frame attributes algorithm must be completed as an explicit self-navigation override and with the frame element’s node document’s browsing context as the source browsing context.

Furthermore, if the active document of the element’s child browsing context before such a navigation was not completely loaded at the time of the new navigation, then the navigation must be completed with replacement enabled.

Similarly, if the child browsing context’s session history contained only one Document when the process the frame attributes algorithm was invoked, and that was the about:blank Document created when the child browsing context was created, then any navigation required of the user agent in that algorithm must be completed with replacement enabled.

When a Document in a frame is marked as completely loaded, the user agent must queue a task to fire a simple event named load at the frame element.

The task source for the tasks above is the DOM manipulation task source.

When a frame element’s nested browsing context’s active document is not ready for post-load tasks, and when anything is delaying the load event of the frame element’s browsing context’s active document, and when the frame element’s browsing context is in the delaying load events mode, the frame must delay the load event of its document.

When the browsing context is created, if a name attribute is present, the browsing context name must be set to the value of this attribute; otherwise, the browsing context name must be set to the empty string.

Whenever the name attribute is set, the nested browsing context’s name must be changed to the new value. If the attribute is removed, the browsing context name must be set to the empty string.

The frame element must implement the HTMLFrameElement interface.

interface HTMLFrameElement : HTMLElement {
  attribute DOMString name;
  attribute DOMString scrolling;
  attribute DOMString src;
  attribute DOMString frameBorder;
  attribute DOMString longDesc;
  attribute boolean noResize;
  readonly attribute Document? contentDocument;
  readonly attribute WindowProxy? contentWindow;

  [TreatNullAs=EmptyString] attribute DOMString marginHeight;
  [TreatNullAs=EmptyString] attribute DOMString marginWidth;
};

The name#dom-htmlframeelement-nameReferenced in:11.3.3. Frames, scrolling#dom-htmlframeelement-scrollingReferenced in:11.3.3. Frames, and src#dom-htmlframeelement-srcReferenced in:11.3.3. Frames IDL attributes of the frame element must reflect the respective content attributes of the same name. For the purposes of reflection, the frame element’s src content attribute is defined as containing a URL.

The frameBorder#dom-htmlframeelement-frameborderReferenced in:11.3.3. Frames IDL attribute of the frame element must reflect the element’s frameborder content attribute.

The longDesc#dom-htmlframeelement-longdescReferenced in:11.3.3. Frames IDL attribute of the frame element must reflect the element’s longdesc content attribute, which for the purposes of reflection is defined as containing a URL.

The noResize#dom-htmlframeelement-noresizeReferenced in:11.3.3. Frames IDL attribute of the frame element must reflect the element’s noresize content attribute.

The contentDocument#dom-htmlframeelement-contentdocumentReferenced in:11.3.3. Frames IDL attribute of the frame element must return the Document object of the active document of the frame element’s nested browsing context, if any and if its effective script origin is the same origin as the effective script origin specified by the incumbent settings object, or null otherwise.

The contentWindow#dom-htmlframeelement-contentwindowReferenced in:11.3.3. Frames IDL attribute must return the WindowProxy object of the frame element’s nested browsing context.

The marginHeight#dom-htmlframeelement-marginheightReferenced in:11.3.3. Frames IDL attribute of the frame element must reflect the element’s marginheight content attribute.

The marginWidth#dom-htmlframeelement-marginwidthReferenced in:11.3.3. Frames IDL attribute of the frame element must reflect the element’s marginwidth content attribute.

11.3.4. Other elements, attributes and APIs

User agents must treat acronym elements in a manner equivalent to abbr elements in terms of semantics and for purposes of rendering.


partial interface HTMLAnchorElement {
  attribute DOMString coords;
  attribute DOMString charset;
  attribute DOMString name;
  attribute DOMString rev;
  attribute DOMString shape;
};

The coords#dom-htmlanchorelement-coordsReferenced in:11.3.4. Other elements, attributes and APIs, charset#dom-htmlanchorelement-charsetReferenced in:11.3.4. Other elements, attributes and APIs, name#dom-htmlanchorelement-nameReferenced in:11.3.4. Other elements, attributes and APIs, rev, and shape#dom-htmlanchorelement-shapeReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the a element must reflect the respective content attributes of the same name.


partial interface HTMLAreaElement {
  attribute boolean noHref;
};

The noHref#dom-htmlareaelement-nohrefReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the area element must reflect the element’s nohref content attribute.


partial interface HTMLBodyElement {
  [TreatNullAs=EmptyString] attribute DOMString text;
  [TreatNullAs=EmptyString] attribute DOMString link;
  [TreatNullAs=EmptyString] attribute DOMString vLink;
  [TreatNullAs=EmptyString] attribute DOMString aLink;
  [TreatNullAs=EmptyString] attribute DOMString bgColor;
  attribute DOMString background;
};

The text#dom-htmlbodyelement-textReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the body element must reflect the element’s text content attribute.

The link#dom-htmlbodyelement-linkReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the body element must reflect the element’s link content attribute.

The aLink#dom-htmlbodyelement-alinkReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the body element must reflect the element’s alink content attribute.

The vLink#dom-htmlbodyelement-vlinkReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the body element must reflect the element’s vlink content attribute.

The bgColor#dom-htmlbodyelement-bgcolorReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the body element must reflect the element’s bgcolor content attribute.

The background#dom-htmlbodyelement-backgroundReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the body element must reflect the element’s background content attribute. (The background content is not defined to contain a URL, despite rules regarding its handling in §10 Rendering above.)


partial interface HTMLBRElement {
  attribute DOMString clear;
};

The clear#dom-htmlbrelement-clearReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the br element must reflect the content attribute of the same name.


partial interface HTMLTableCaptionElement {
  attribute DOMString align;
};

The align#dom-htmltablecaptionelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the caption element must reflect the content attribute of the same name.


partial interface HTMLTableColElement {
  attribute DOMString align;
  attribute DOMString ch;
  attribute DOMString chOff;
  attribute DOMString vAlign;
  attribute DOMString width;
};

The align#dom-htmltablecolelement-alignReferenced in:11.3.4. Other elements, attributes and APIs and width#dom-htmltablecolelement-widthReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the col element must reflect the respective content attributes of the same name.

The ch#dom-htmltablecolelement-chReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the col element must reflect the element’s char content attribute.

The chOff#dom-htmltablecolelement-choffReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the col element must reflect the element’s charoff content attribute.

The vAlign#dom-htmltablecolelement-valignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the col element must reflect the element’s valign content attribute.


User agents must treat dir elements in a manner equivalent to ul elements in terms of semantics and for purposes of rendering.

The dir element must implement the HTMLDirectoryElement interface.

interface HTMLDirectoryElement : HTMLElement {
  attribute boolean compact;
};

The compact#dom-htmldirectoryelement-compactReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the dir element must reflect the content attribute of the same name.


partial interface HTMLDivElement {
  attribute DOMString align;
};

The align#dom-htmldivelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the div element must reflect the content attribute of the same name.


partial interface HTMLDListElement {
  attribute boolean compact;
};

The compact#dom-htmldlistelement-compactReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the dl element must reflect the content attribute of the same name.


partial interface HTMLEmbedElement {
  attribute DOMString align;
  attribute DOMString name;
};

The name#dom-htmlembedelement-nameReferenced in:11.3.4. Other elements, attributes and APIs and align#dom-htmlembedelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the embed element must reflect the respective content attributes of the same name.


The font element must implement the HTMLFontElement interface.

interface HTMLFontElement : HTMLElement {
  [TreatNullAs=EmptyString] attribute DOMString color;
  attribute DOMString face;
  attribute DOMString size;
};

The color#dom-htmlfontelement-colorReferenced in:11.3.4. Other elements, attributes and APIs, face#dom-htmlfontelement-faceReferenced in:11.3.4. Other elements, attributes and APIs, and size#dom-htmlfontelement-sizeReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the font element must reflect the respective content attributes of the same name.


partial interface HTMLHeadingElement {
  attribute DOMString align;
};

The align#dom-htmlheadingelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the h1h6 elements must reflect the content attribute of the same name.


The profile IDL attribute on head elements (with the HTMLHeadElement interface) is intentionally omitted. Unless so required by another applicable specification, implementations would therefore not support this attribute. (It is mentioned here as it was defined in a previous version of the DOM specifications.)


partial interface HTMLHRElement {
  attribute DOMString align;
  attribute DOMString color;
  attribute boolean noShade;
  attribute DOMString size;
  attribute DOMString width;
};

The align#dom-htmlhrelement-alignReferenced in:11.3.4. Other elements, attributes and APIs, color#dom-htmlhrelement-colorReferenced in:11.3.4. Other elements, attributes and APIs, size#dom-htmlhrelement-sizeReferenced in:11.3.4. Other elements, attributes and APIs, and width#dom-htmlhrelement-widthReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the hr element must reflect the respective content attributes of the same name.

The noShade IDL attribute of the hr element must reflect the element’s noshade content attribute.


partial interface HTMLHtmlElement {
  attribute DOMString version;
};

The version#dom-htmlhtmlelement-versionReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the html element must reflect the content attribute of the same name.


partial interface HTMLIFrameElement {
  attribute DOMString align;
  attribute DOMString scrolling;
  attribute DOMString frameBorder;
  attribute DOMString longDesc;

  [TreatNullAs=EmptyString] attribute DOMString marginHeight;
  [TreatNullAs=EmptyString] attribute DOMString marginWidth;
};

The align#dom-htmliframeelement-alignReferenced in:11.3.4. Other elements, attributes and APIs and scrolling IDL attributes of the iframe element must reflect the respective content attributes of the same name.

The frameBorder#dom-htmliframeelement-frameborderReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the iframe element must reflect the element’s frameborder content attribute.

The longDesc#dom-htmliframeelement-longdescReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the iframe element must reflect the element’s longdesc content attribute, which for the purposes of reflection is defined as containing a URL.

The marginHeight#dom-htmliframeelement-marginheightReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the iframe element must reflect the element’s marginheight content attribute.

The marginWidth#dom-htmliframeelement-marginwidthReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the iframe element must reflect the element’s marginwidth content attribute.


partial interface HTMLImageElement {
  attribute DOMString name;
  attribute DOMString lowsrc;
  attribute DOMString align;
  attribute unsigned long hspace;
  attribute unsigned long vspace;
  attribute DOMString longDesc;

  [TreatNullAs=EmptyString] attribute DOMString border;
};

The name#dom-htmlimageelement-nameReferenced in:11.3.4. Other elements, attributes and APIs, align#dom-htmlimageelement-alignReferenced in:11.3.4. Other elements, attributes and APIs, border#dom-htmlimageelement-borderReferenced in:11.3.4. Other elements, attributes and APIs, hspace#dom-htmlimageelement-hspaceReferenced in:11.3.4. Other elements, attributes and APIs, and vspace#dom-htmlimageelement-vspaceReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the img element must reflect the respective content attributes of the same name.

The longDesc#dom-htmlimageelement-longdescReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the img element must reflect the element’s longdesc content attribute, which for the purposes of reflection is defined as containing a URL.

The lowsrc#dom-htmlimageelement-lowsrcReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the img element must reflect the element’s lowsrc content attribute, which for the purposes of reflection is defined as containing a URL.


partial interface HTMLInputElement {
  attribute DOMString align;
  attribute DOMString useMap;
};

The align#dom-htmlinputelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the input element must reflect the content attribute of the same name.

The useMap#dom-htmlinputelement-usemapReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the input element must reflect the element’s usemap content attribute.


partial interface HTMLLegendElement {
  attribute DOMString align;
};

The align#dom-htmllegendelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the legend element must reflect the content attribute of the same name.


partial interface HTMLLIElement {
  attribute DOMString type;
};

The type#dom-htmllielement-typeReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the li element must reflect the content attribute of the same name.


partial interface HTMLLinkElement {
  attribute DOMString charset;
  attribute DOMString rev;
  attribute DOMString target;
};

The charset#dom-htmllinkelement-charsetReferenced in:11.3.4. Other elements, attributes and APIs, rev, and target#dom-htmllinkelement-targetReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the link element must reflect the respective content attributes of the same name.


User agents must treat listing elements in a manner equivalent to pre elements in terms of semantics and for purposes of rendering.


partial interface HTMLMenuElement {
  attribute boolean compact;
};

The compact#dom-htmlmenuelement-compactReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the menu element must reflect the content attribute of the same name.


partial interface HTMLMetaElement {
  attribute DOMString scheme;
};

User agents may treat the scheme content attribute on the meta element as an extension of the element’s name content attribute when processing a meta element with a name attribute whose value is one that the user agent recognizes as supporting the scheme attribute.

User agents are encouraged to ignore the scheme attribute and instead process the value given to the metadata name as if it had been specified for each expected value of the scheme attribute.

For example, if the user agent acts on meta elements with name attributes having the value "eGMS.subject.keyword", and knows that the scheme attribute is used with this metadata name, then it could take the scheme attribute into account, acting as if it was an extension of the name attribute. Thus the following two meta elements could be treated as two elements giving values for two different metadata names, one consisting of a combination of "eGMS.subject.keyword" and "LGCL", and the other consisting of a combination of "eGMS.subject.keyword" and "ORLY":
<!-- this markup is invalid -->
<meta name="eGMS.subject.keyword" scheme="LGCL" content="Abandoned vehicles">
<meta name="eGMS.subject.keyword" scheme="ORLY" content="Mah car: kthxbye">

The suggested processing of this markup, however, would be equivalent to the following:

<meta name="eGMS.subject.keyword" content="Abandoned vehicles">
<meta name="eGMS.subject.keyword" content="Mah car: kthxbye">

The scheme#dom-htmlmetaelement-schemeReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the meta element must reflect the content attribute of the same name.


partial interface HTMLObjectElement {
  attribute DOMString align;
  attribute DOMString archive;
  attribute DOMString code;
  attribute boolean declare;
  attribute unsigned long hspace;
  attribute DOMString standby;
  attribute unsigned long vspace;
  attribute DOMString codeBase;
  attribute DOMString codeType;

  [TreatNullAs=EmptyString] attribute DOMString border;
};

The align#dom-htmlobjectelement-alignReferenced in:11.3.4. Other elements, attributes and APIs, archive#dom-htmlobjectelement-archiveReferenced in:11.3.4. Other elements, attributes and APIs, border#dom-htmlobjectelement-borderReferenced in:11.3.4. Other elements, attributes and APIs, code#dom-htmlobjectelement-codeReferenced in:11.3.4. Other elements, attributes and APIs, declare#dom-htmlobjectelement-declareReferenced in:11.3.4. Other elements, attributes and APIs, hspace#dom-htmlobjectelement-hspaceReferenced in:11.3.4. Other elements, attributes and APIs, standby#dom-htmlobjectelement-standbyReferenced in:11.3.4. Other elements, attributes and APIs, and vspace#dom-htmlobjectelement-vspaceReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the object element must reflect the respective content attributes of the same name.

The codeBase#dom-htmlobjectelement-codebaseReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the object element must reflect the element’s codebase content attribute, which for the purposes of reflection is defined as containing a URL.

The codeType#dom-htmlobjectelement-codetypeReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the object element must reflect the element’s codetype content attribute.


partial interface HTMLOListElement {
  attribute boolean compact;
};

The compact#dom-htmlolistelement-compactReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the ol element must reflect the content attribute of the same name.


partial interface HTMLParagraphElement {
  attribute DOMString align;
};

The align#dom-htmlparagraphelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the p element must reflect the content attribute of the same name.


partial interface HTMLParamElement {
  attribute DOMString type;
  attribute DOMString valueType;
};

The type#dom-htmlparamelement-typeReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the param element must reflect the content attribute of the same name.

The valueType#dom-htmlparamelement-valuetypeReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the param element must reflect the element’s valuetype content attribute.


User agents must treat plaintext elements in a manner equivalent to pre elements in terms of semantics and for purposes of rendering. (The parser has special behavior for this element, though.)


partial interface HTMLPreElement {
  attribute long width;
};

The width#dom-htmlpreelement-widthReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the pre element must reflect the content attribute of the same name.


partial interface HTMLScriptElement {
  attribute DOMString event;
  attribute DOMString htmlFor;
};

The event#dom-htmlscriptelement-eventReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the script element must reflect the element’s event content attribute.

The htmlFor#dom-htmlscriptelement-htmlforReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the script element must reflect the element’s for content attribute.


partial interface HTMLTableElement {
  attribute DOMString align;
  attribute DOMString border;
  attribute DOMString frame;
  attribute DOMString rules;
  attribute DOMString summary;
  attribute DOMString width;

  [TreatNullAs=EmptyString] attribute DOMString bgColor;
  [TreatNullAs=EmptyString] attribute DOMString cellPadding;
  [TreatNullAs=EmptyString] attribute DOMString cellSpacing;
};

The align#dom-htmltableelement-alignReferenced in:11.3.4. Other elements, attributes and APIs, border#dom-htmltableelement-borderReferenced in:11.3.4. Other elements, attributes and APIs, frame#dom-htmltableelement-frameReferenced in:11.3.4. Other elements, attributes and APIs, summary#dom-htmltableelement-summaryReferenced in:11.3.4. Other elements, attributes and APIs, rules#dom-htmltableelement-rulesReferenced in:11.3.4. Other elements, attributes and APIs, and width#dom-htmltableelement-widthReferenced in:11.3.4. Other elements, attributes and APIs, IDL attributes of the table element must reflect the respective content attributes of the same name.

The bgColor#dom-htmltableelement-bgcolorReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the table element must reflect the element’s bgcolor content attribute.

The cellPadding#dom-htmltableelement-cellpaddingReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the table element must reflect the element’s cellpadding content attribute.

The cellSpacing#dom-htmltableelement-cellspacingReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the table element must reflect the element’s cellspacing content attribute.


partial interface HTMLTableSectionElement {
  attribute DOMString align;
  attribute DOMString ch;
  attribute DOMString chOff;
  attribute DOMString vAlign;
};

The align#dom-htmltablesectionelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tbody, thead, and tfoot elements must reflect the content attribute of the same name.

The ch#dom-htmltablesectionelement-chReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tbody, thead, and tfoot elements must reflect the elements' char content attributes.

The chOff#dom-htmltablesectionelement-choffReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tbody, thead, and tfoot elements must reflect the elements' charoff content attributes.

The vAlign#dom-htmltablesectionelement-valignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tbody, thead, and tfoot element must reflect the elements' valign content attributes.


partial interface HTMLTableCellElement {
  attribute DOMString align;
  attribute DOMString axis;
  attribute DOMString height;
  attribute DOMString width;

  attribute DOMString ch;
  attribute DOMString chOff;
  attribute boolean noWrap;
  attribute DOMString vAlign;

  [TreatNullAs=EmptyString] attribute DOMString bgColor;
};

The align#dom-htmltablecellelement-alignReferenced in:11.3.4. Other elements, attributes and APIs, axis#dom-htmltablecellelement-axisReferenced in:11.3.4. Other elements, attributes and APIs, height#dom-htmltablecellelement-heightReferenced in:11.3.4. Other elements, attributes and APIs, and width#dom-htmltablecellelement-widthReferenced in:11.3.4. Other elements, attributes and APIs IDL attributes of the td and th elements must reflect the respective content attributes of the same name.

The ch#dom-htmltablecellelement-chReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the td and th elements must reflect the elements' char content attributes.

The chOff#dom-htmltablecellelement-choffReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the td and th elements must reflect the elements' charoff content attributes.

The noWrap#dom-htmltablecellelement-nowrapReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the td and th elements must reflect the elements' nowrap content attributes.

The vAlign#dom-htmltablecellelement-valignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the td and th element must reflect the elements' valign content attributes.

The bgColor#dom-htmltablecellelement-bgcolorReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the td and th elements must reflect the elements' bgcolor content attributes.


partial interface HTMLTableDataCellElement {
  attribute DOMString abbr;
};

The abbr#dom-htmltabledatacellelement-abbrReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the td element must reflect the respective content attributes of the same name.


partial interface HTMLTableRowElement {
  attribute DOMString align;
  attribute DOMString ch;
  attribute DOMString chOff;
  attribute DOMString vAlign;

  [TreatNullAs=EmptyString] attribute DOMString bgColor;
};

The align#dom-htmltablerowelement-alignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tr element must reflect the content attribute of the same name.

The ch#dom-htmltablerowelement-chReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tr element must reflect the element’s char content attribute.

The chOff#dom-htmltablerowelement-choffReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tr element must reflect the element’s charoff content attribute.

The vAlign#dom-htmltablerowelement-valignReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tr element must reflect the element’s valign content attribute.

The bgColor#dom-htmltablerowelement-bgcolorReferenced in:11.3.4. Other elements, attributes and APIs IDL attribute of the tr element must reflect the element’s bgcolor content attribute.


partial interface HTMLUListElement {
  attribute boolean compact;
  attribute DOMString type#dom-htmlulistelement-typeReferenced in:11.3.4. Other elements, attributes and APIs;
};

The compact#dom-htmlulistelement-compactReferenced in:11.3.4. Other elements, attributes and APIs and type IDL attributes of the ul element must reflect the respective content attributes of the same name.


User agents must treat xmp elements in a manner equivalent to pre elements in terms of semantics and for purposes of rendering. (The parser has special behavior for this element though.)


The blink, bgsound, isindex, multicol, nextid, and spacer elements must use the HTMLUnknownElement interface.


partial interface Document {
  [TreatNullAs=EmptyString] attribute DOMString fgColor;
  [TreatNullAs=EmptyString] attribute DOMString linkColor;
  [TreatNullAs=EmptyString] attribute DOMString vlinkColor;
  [TreatNullAs=EmptyString] attribute DOMString alinkColor;
  [TreatNullAs=EmptyString] attribute DOMString bgColor;

  [SameObject] readonly attribute HTMLCollection anchors;
  [SameObject] readonly attribute HTMLCollection applets;

  void clear();
  void captureEvents();
  void releaseEvents();

  [SameObject] readonly attribute HTMLAllCollection all;
};

The attributes of the Document object listed in the first column of the following table must reflect the content attribute on the body element with the name given in the corresponding cell in the second column on the same row, if the body element is a body element (as opposed to a frameset element). When there is no body element or if it is a frameset element, the attributes must instead return the empty string on getting and do nothing on setting.

IDL attribute Content attribute
fgColor#dom-document-fgcolorReferenced in:11.3.4. Other elements, attributes and APIs text
linkColor#dom-document-linkcolorReferenced in:11.3.4. Other elements, attributes and APIs link
vlinkColor#dom-document-vlinkcolorReferenced in:11.3.4. Other elements, attributes and APIs vlink
alinkColor#dom-document-alinkcolorReferenced in:11.3.4. Other elements, attributes and APIs alink
bgColor#dom-document-bgcolorReferenced in:11.3.4. Other elements, attributes and APIs bgcolor

The anchors#dom-document-anchorsReferenced in:11.3.4. Other elements, attributes and APIs attribute must return an HTMLCollection rooted at the Document node, whose filter matches only a elements with name attributes.

The applets#dom-document-appletsReferenced in:11.3.4. Other elements, attributes and APIs attribute must return an HTMLCollection rooted at the Document node, whose filter matches only applet elements.

The clear()#dom-document-clearReferenced in:11.3.4. Other elements, attributes and APIs, captureEvents()#dom-document-captureeventsReferenced in:11.3.4. Other elements, attributes and APIs, and releaseEvents() methods must do nothing.


The all#dom-document-allReferenced in:11.3.4. Other elements, attributes and APIs attribute must return an HTMLAllCollection rooted at the Document node, whose filter matches all elements.

The object returned for all has several unusual behaviors:

  • The user agent must act as if the ToBoolean() operator in JavaScript converts the object returned for all to the false value.

  • The user agent must act as if, for the purposes of the == and != operators in JavaScript, the object returned for all compares as equal to the undefined and null values. (Comparisons using the === operator, and comparisons to other values such as strings or objects, are unaffected.)

  • The user agent must act such that the typeof operator in JavaScript returns the string undefined when applied to the object returned for all.

These requirements are a willful violation of the JavaScript specification current at the time of writing (ECMAScript edition 6). The JavaScript specification requires that the ToBoolean() operator convert all objects to the true value, and does not have provisions for objects acting as if they were undefined for the purposes of certain operators. This violation is motivated by a desire for compatibility with two classes of legacy content: one that uses the presence of document.all as a way to detect legacy user agents, and one that only supports those legacy user agents and uses the document.all object without testing for its presence first. [ECMA-262]


partial interface Window {
  void captureEvents();
  void releaseEvents();
};

The captureEvents()#dom-window-captureeventsReferenced in:11.3.4. Other elements, attributes and APIs and releaseEvents()#dom-window-releaseeventsReferenced in:11.3.4. Other elements, attributes and APIs methods must do nothing.

10 RenderingTable of contents12 IANA considerations