訳注: この文書はSuperseded Recommendationとして廃止された仕様です。この日本語訳は歴史的な意味しか持ちません。WHATWGによる最新のHTML仕様を参照ください。

WHATWG HTML日本語訳も参照することができます。

11 旧式の機能

11.1 旧式だが適合する機能

このセクションに記載される機能は、適合性チェッカーで警告するだろう。

著者は、img要素にborder属性を指定すべきでない。属性が存在する場合、その値は文字列"0"でなければならない。CSSが代わりに使用されるべきである。

著者は、script要素にlanguage属性を指定すべきでない。属性が存在する場合、その値は、文字列"JavaScript"にASCII大文字・小文字不区別で一致しなければならず、type属性が省略されなければならない、またはその値が文字列"text/javascript"のASCII大文字・小文字不区別のいずれかで一致しなければならない。この属性は完全に省略される(値"JavaScript"で、効果はない)か、またはtype属性を使用して置換すべきである。

著者は、a要素にname属性を指定すべきでない。属性が存在する場合、その値は空文字列であってはならず、もしあれば、要素自身のID以外で要素のホームサブツリーIDのいずれかの値に等しくないもの、また任意の値に等しくなければ要素のホームサブツリーa要素の他のname属性と等しくないものでなければならない。この属性が存在し、要素がIDを持つ場合、属性値は要素のIDと同じでなければならない。言語の以前のバージョンにおいて、この属性はURL内のフラグメント識別子に対する可能なターゲットを指定するための手段として意図されていた。id属性が代わりに使用されるべきである。

著者は、この仕様の他の場所に相いれない要件にもかかわらず、type属性がNumber状態にあるinput要素上のmaxlengthおよびsize属性を指定すべきでないが、してもよい。これら属性を使用するための一つの正当な理由はとにかく、依然として有用幅でテキストフィールドをレンダリングするために、type="number"をもつinput要素をサポートしないレガシーユーザーエージェントを支援することである。

HTML構文において、旧式の許可されたDOCTYPEであるDOCTYPEの指定は、警告されるだろう。

11.1.1 Warnings for obsolete but conforming features

To ease the transition from HTML4 Transitional documents to the language defined in this specification, and to discourage certain features that are only allowed in very few circumstances, conformance checkers are required to 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 適合しない機能

次のリストの要素は完全に廃止されており、著者は使用してはならない:

applet

代わりにembedまたはobjectを使用する。

acronym

代わりにabbrを使用する。

bgsound

代わりにaudioを使用する。

dir

代わりにulを使用する。

frame
frameset
noframes

代わりにiframeおよびCSSを使用する、または様々な不変部分が合併された完全なページを生成するために含まれるサーバー側を使用するかのいずれか。

hgroup

小見出しをマークアップするために、主となる見出しを含むh1-h6要素の後にp要素に小見出しを入れる、または主となる見出しを含むh1-h6要素内に直接小見出しを入れることを考える。後者は句読点によっておよび/または、たとえば、分化したスタイリングをもつspan class="subheading"の中などで主となる見出しからの分離となる。

見出しと小見出し、代替タイトル、またはキャッチフレーズは、headerまたはdiv要素を使用してグループ化できる。

isindex

代わりに明示的にformテキストフィールドの組み合わせを使用する。

listing

代わりにpreまたはcodeを使用する。

nextid

GUIDを代わりに使用する。

noembed

フォールバックが必要な際にembedの代わりにobjectを使用する。

plaintext

代わりに"text/plain" MIMEタイプを使用する。

strike

要素が編集をマークする場合は代わりにdelを使用し、そうでなければ代わりにsを使用する。

xmp

代わりにpreおよびcodeを使用し、"<"および"&"文字をそれぞれ"&lt;"および"&amp;"としてエスケープする。

basefont
big
blink
center
font
marquee
multicol
nobr
spacer
tt

適切な要素またはCSSを代わりに使用する。

tt要素がキーボード入力をマークアップするために使用されるであろう場所において、kbd要素を考慮する。変数に対しては、var要素を考慮する。コンピューターコードに対しては、code要素を考慮する。コンピュータ出力に対しては、samp要素を考慮する。

同様に、big要素が見出しを表すために使用される場合、h1要素の使用を考慮する。重要な語句をマークアップするために使用される場合、strong要素を考慮する。参照目的に対してテキストをハイライトするために使用されている場合、mark要素を検討する。

例を含むより多くの提案に対するテキストレベルのセマンティックの使用状況の概要も参照のこと。


(要素はまだ言語の一部であるが)以下の属性は廃止されており、著者は使用してはならない:

a要素のcharset
link要素のcharset

代わりにリンクされたリソース上のHTTP Content-Typeヘッダーを使用する。

a要素のcoords
a要素のshape

イメージマップに対してaの代わりにareaを使用する。

a要素のmethods
link要素のmethods

代わりにHTTP OPTIONS機能を使用する。

a要素のname(前のセクションに記載される場合を除く)
embed要素のname
img要素のname
option要素のname

代わりにid属性を使用する。

a要素のurn
link要素のurn

代わりにhref属性を使用して優先される永続的な識別子を指定する。

form要素のaccept

代わりに、input要素で直接accept属性を使用する。

area要素のnohref

href属性を省略することで十分であり、nohref属性は不要である。完全に省略する。

head要素のprofile

meta用語が文書で使用される宣言に使用する場合、不要である。これを完全に省略し、名前を登録する

特定のユーザーエージェントの動作をトリガするために使用する場合:代わりにlink要素を使用する。

html要素のversion

不要。完全に省略する。

input要素のismap

不要。完全に省略する。Image Button状態でtype属性をもつすべてのinput要素は、サーバ側イメージマップとして処理される。

input要素のusemap

イメージマップに対してinputの代わりにimgを使用する。

img要素のlowsrc

代わりに2つの別々の画像を使用する、(src属性で指定された)プログレッシブJPEG画像を使用する。

link要素のtarget

不要。完全に省略する。

meta要素のscheme

フィールドごとに1つのスキームのみを使用する、または値のスキーム宣言部分を作成する。

object要素のarchive
object要素のclassid
object要素のcode
object要素のcodebase
object要素のcodetype

プラグインを呼び出すために、data属性およびtype属性を使用する。特にこれら名前のパラメータを設定するために、param要素を使用できる。

object要素のdeclare

object要素のリソースを再利用するたびに完全に繰り返す。

object要素のstandby

少なくとも徐々に、または迅速にロードするようにリンクされたリソースを最適化する。

param要素のtype
param要素のvaluetype

値型を宣言することなく、nameおよびvalue属性を使用する。

script要素のlanguage(前のセクションに記載される場合を除く)

代わりにtype属性を使用する。

script要素のevent
script要素のfor

イベントリスナーを登録するためにDOMイベントのメカニズムを使用する。[DOM]

table要素のdatapagesize

不要。完全に省略する。

table要素のsummary

tableのセクションで指定されたテーブルを記述するための手法のいずれかを代わりに使用する。

tdおよびth要素のaxis

代わりに該当するth要素でscope属性を使用する。

td要素のscope

見出しセルに対してth要素を使用する。

aappletbuttondivframeiframeimginputlabellegendmarqueeobjectoptionselectspantable、およびtextarea要素のdatasrc
aappletbuttondivfieldsetframeiframeimginputlabellegendmarqueeobjectparamselectspan、およびtextarea要素のdatafld
buttondivinputlabellegendmarqueeobjectoptionselectspan、およびtable要素のdataformatas

動的にページを読み込むためにスクリプトやXMLHttpRequestのようなメカニズムを使用する。[XHR]

body要素のalink
body要素のbgcolor
body要素のlink
body要素のmarginbottom
body要素のmarginheight
body要素のmarginleft
body要素のmarginright
body要素のmargintop
body要素のmarginwidth
body要素のtext
body要素のvlink
br要素のclear
caption要素のalign
col要素のalign
col要素のchar
col要素のcharoff
col要素のvalign
col要素のwidth
div要素のalign
dl要素のcompact
embed要素のalign
embed要素のhspace
embed要素のvspace
hr要素のalign
hr要素のcolor
hr要素のnoshade
hr要素のsize
hr要素のwidth
h1h6要素のalign
iframe要素のalign
iframe要素のallowtransparency
iframe要素のframeborder
iframe要素のhspace
iframe要素のmarginheight
iframe要素のmarginwidth
iframe要素のscrolling
iframe要素のvspace
input要素のalign
input要素のhspace
input要素のvspace
img要素のalign
img要素のborder(前のセクションに記載される場合を除く)
img要素のhspace
img要素のvspace
legend要素のalign
li要素のtype
object要素のalign
object要素のborder
object要素のhspace
object要素のvspace
ol要素のcompact
p要素のalign
pre要素のwidth
table要素のalign
table要素のbgcolor
table要素のbordercolor
table要素のcellpadding
table要素のcellspacing
table要素のframe
table要素のrules
table要素のwidth
tbodythead、およびtfoot要素のalign
tbodythead、およびtfoot要素のchar
tbodythead、およびtfoot要素のcharoff
tbodythead、およびtfoot要素のvalign
tdおよびth要素のalign
tdおよびth要素のbgcolor
tdおよびth要素のchar
tdおよびth要素のcharoff
tdおよびth要素のheight
tdおよびth要素のnowrap
tdおよびth要素のvalign
tdおよびth要素のwidth
tr要素のalign
tr要素のbgcolor
tr要素のchar
tr要素のcharoff
tr要素のvalign
ul要素のcompact
ul要素のtype
bodytabletheadtbodytfoottrtdth要素のbackground

CSSを代わりに使用する。


table要素のborder属性は、テキストベースのブラウザ、WYSIWYGエディタ、およびCSSサポートが無効またはスタイルシートが失われる状況など、CSSのサポートが限られるまたは存在しないブラウジング環境でテーブルの判読をする目的に対して基本的なフォールバックスタイリングを提供するために使用できる。空文字列および値"1"のみが、この目的に対するborder値として使用してもよい。他の値は時代遅れであると考えられる。このようなボーダーの太さを調節するためには、著者はCSSを代わりに使用すべきである。

11.3 Requirements for implementations

11.3.1 The applet element

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; // the underscore is not part of the identifier 
           attribute unsigned long vspace;
           attribute DOMString width;
};

The align, alt, archive, code, height, hspace, name, object, vspace, and width 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 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 element

The marquee element is a presentational element that animates content. CSS transitions and animations are a more appropriate mechanism. [CSSANIMATIONS] [CSSTRANSITIONS]

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 or turned off. When it is created, it is turned on.

When the start() method is called, the marquee element must be turned on.

When the stop() 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):

キーワード 状態
scroll scroll
slide slide
alternate alternate

The missing value default is the scroll state.


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

キーワード 状態
left left
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, 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, 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, which, if the element has a loop 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 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, which is zero when the element is created.

The rendering layer will occasionally increment the marquee current loop index, 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:

イベントハンドラ イベントハンドライベント型
onbounce bounce
onfinish finish
onstart start

The behavior, direction, height, hspace, vspace, and width IDL attributes must reflect the respective content attributes of the same name.

The bgColor IDL attribute must reflect the bgcolor content attribute.

The scrollAmount IDL attribute must reflect the scrollamount content attribute. The default value is 6.

The scrollDelay IDL attribute must reflect the scrolldelay content attribute. The default value is 85.

The trueSpeed IDL attribute must reflect the truespeed content attribute.

11.3.3 Frames

The frameset element acts as the body element in documents that use frames.

The frameset element must implement the HTMLFrameSetElement interface.

interface HTMLFrameSetElement : 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. また、それらのイベントハンドラIDL属性を反映する。

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 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 and its parent element, if any, is a frameset element.

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, 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.

そうでなければ
  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 context to 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 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 there is an active parser in the frame, and when anything in the frame is delaying the load event of the frame's browsing context's active document, 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, scrolling, and src 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 IDL attribute of the frame element must reflect the element's frameborder content attribute.

The longDesc 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 IDL attribute of the frame element must reflect the element's noresize content attribute.

The contentDocument 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 IDL attribute must return the WindowProxy object of the frame element's nested browsing context.

The marginHeight IDL attribute of the frame element must reflect the element's marginheight content attribute.

The marginWidth 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 shape;
};

The coords, charset, name, and shape IDL attributes of the a element must reflect the respective content attributes of the same name.


partial interface HTMLAreaElement {
           attribute boolean noHref;
};

The noHref 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 IDL attribute of the body element must reflect the element's text content attribute.

The link IDL attribute of the body element must reflect the element's link content attribute.

The aLink IDL attribute of the body element must reflect the element's alink content attribute.

The vLink IDL attribute of the body element must reflect the element's vlink content attribute.

The bgColor IDL attribute of the body element must reflect the element's bgcolor content attribute.

The background 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 the rendering section above.)


partial interface HTMLBRElement {
           attribute DOMString clear;
};

The clear IDL attribute of the br element must reflect the content attribute of the same name.


partial interface HTMLTableCaptionElement {
           attribute DOMString align;
};

The align 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 and width IDL attributes of the col element must reflect the respective content attributes of the same name.

The ch IDL attribute of the col element must reflect the element's char content attribute.

The chOff IDL attribute of the col element must reflect the element's charoff content attribute.

The vAlign 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 IDL attribute of the dir element must reflect the content attribute of the same name.


partial interface HTMLDivElement {
           attribute DOMString align;
};

The align IDL attribute of the div element must reflect the content attribute of the same name.


partial interface HTMLDListElement {
           attribute boolean compact;
};

The compact 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 and align 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, face, and size IDL attributes of the font element must reflect the respective content attributes of the same name.


partial interface HTMLHeadingElement {
           attribute DOMString align;
};

The align 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, color, size, and width 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 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 and scrolling IDL attributes of the iframe element must reflect the respective content attributes of the same name.

The frameBorder IDL attribute of the iframe element must reflect the element's frameborder content attribute.

The longDesc 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 IDL attribute of the iframe element must reflect the element's marginheight content attribute.

The marginWidth 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, align, border, hspace, and vspace IDL attributes of the img element must reflect the respective content attributes of the same name.

The longDesc 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 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 IDL attribute of the input element must reflect the content attribute of the same name.

The useMap IDL attribute of the input element must reflect the element's usemap content attribute.


partial interface HTMLLegendElement {
           attribute DOMString align;
};

The align IDL attribute of the legend element must reflect the content attribute of the same name.


partial interface HTMLLIElement {
           attribute DOMString type;
};

The type IDL attribute of the li element must reflect the content attribute of the same name.


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

The charset and target 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 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 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, archive, border, code, declare, hspace, standby, and vspace IDL attributes of the object element must reflect the respective content attributes of the same name.

The codeBase 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 IDL attribute of the object element must reflect the element's codetype content attribute.


partial interface HTMLOListElement {
           attribute boolean compact;
};

The compact IDL attribute of the ol element must reflect the content attribute of the same name.


partial interface HTMLParagraphElement {
           attribute DOMString align;
};

The align 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 IDL attribute of the param element must reflect the content attribute of the same name.

The valueType 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 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 and htmlFor IDL attributes of the script element must return the empty string on getting, and do nothing on setting.


partial interface HTMLTableElement {
           attribute DOMString align;
           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, border, frame, summary, rules, and width, IDL attributes of the table element must reflect the respective content attributes of the same name.

The bgColor IDL attribute of the table element must reflect the element's bgcolor content attribute.

The cellPadding IDL attribute of the table element must reflect the element's cellpadding content attribute.

The cellSpacing 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 IDL attribute of the tbody, thead, and tfoot elements must reflect the content attribute of the same name.

The ch IDL attribute of the tbody, thead, and tfoot elements must reflect the elements' char content attributes.

The chOff IDL attribute of the tbody, thead, and tfoot elements must reflect the elements' charoff content attributes.

The vAlign 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, axis, height, and width IDL attributes of the td and th elements must reflect the respective content attributes of the same name.

The ch IDL attribute of the td and th elements must reflect the elements' char content attributes.

The chOff IDL attribute of the td and th elements must reflect the elements' charoff content attributes.

The noWrap IDL attribute of the td and th elements must reflect the elements' nowrap content attributes.

The vAlign IDL attribute of the td and th element must reflect the elements' valign content attributes.

The bgColor IDL attribute of the td and th elements must reflect the elements' bgcolor content attributes.


partial interface HTMLTableDataCellElement {
           attribute DOMString abbr;
};

The abbr 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 IDL attribute of the tr element must reflect the content attribute of the same name.

The ch IDL attribute of the tr element must reflect the element's char content attribute.

The chOff IDL attribute of the tr element must reflect the element's charoff content attribute.

The vAlign IDL attribute of the tr element must reflect the element's valign content attribute.

The bgColor IDL attribute of the tr element must reflect the element's bgcolor content attribute.


partial interface HTMLUListElement {
           attribute boolean compact;
           attribute DOMString type;
};

The compact 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;

  readonly attribute HTMLCollection anchors;
  readonly attribute HTMLCollection applets;

  void clear();
  void captureEvents(long dummy);
  void releaseEvents(long dummy);

  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 text
linkColor link
vlinkColor vlink
alinkColor alink
bgColor bgcolor

The anchors attribute must return an HTMLCollection rooted at the Document node, whose filter matches only a elements with name attributes.

The applets attribute must return an HTMLCollection rooted at the Document node, whose filter matches only applet elements.

The clear(), captureEvents(), and releaseEvents() methods must do nothing.


The all attribute must return an HTMLAllCollection rooted at the Document node, whose filter matches all elements.

The object returned for all has several unusual behaviors:

These requirements are a willful violation of the JavaScript specification current at the time of writing (ECMAScript edition 5). 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. [ECMA262]


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

The captureEvents() and releaseEvents() methods must do nothing.


The hgroup element does not have strong native semantics or default implicit ARIA semantics. User agents must not implement accessibility layer semantics for the hgroup element that obfuscates or modifies the semantics of its children.