티스토리 수익 글 보기
HTML
Living Standard — Last Updated 8 January 2026
16 Obsolete features
16.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 charset attribute on a
script element. If the attribute is present, its value must be an ASCII
case-insensitive match for “utf-8“. (This has no effect in a
document that conforms to the requirements elsewhere in this standard of being encoded as
UTF-8.)
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 a value for the type
attribute on script elements that is the empty string or a JavaScript MIME type
essence match. Instead, they should omit the attribute, which has the same effect.
Authors should not specify a type attribute on a
style element. If the attribute is present, its value must be an ASCII
case-insensitive match for “text/css“.
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 tree 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 tree. 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 fragments 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 control with a useful width.
16.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 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:
The presence of a
borderattribute on animgelement if its value is the string “0“.The presence of a
charsetattribute on ascriptelement if its value is an ASCII case-insensitive match for “utf-8“.The presence of a
languageattribute on ascriptelement if its value is an ASCII case-insensitive match for the string “JavaScript” and if there is notypeattribute or there is and its value is an ASCII case-insensitive match for the string “text/javascript“.The presence of a
typeattribute on ascriptelement if its value is a JavaScript MIME type essence match.The presence of a
typeattribute on astyleelement if its value is an ASCII case-insensitive match for “text/css“.The presence of a
nameattribute on anaelement, if its value is not the empty string.The presence of a
maxlengthattribute on aninputelement whosetypeattribute is in the Number state.The presence of a
sizeattribute on aninputelement whosetypeattribute is in the Number state.
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”.
16.2 Non-conforming features
Elements in the following list are entirely obsolete, and must not be used by authors:
appletacronymUse
abbrinstead.bgsoundUse
audioinstead.dirUse
ulinstead.frameframesetnoframesEither use
iframeand CSS instead, or use server-side includes to generate complete pages with the various invariant parts merged in.isindexUse an explicit
formand text control combination instead.keygen-
For enterprise device management use cases, use native on-device management capabilities.
For certificate enrollment use cases, use the Web Cryptography API to generate a keypair for the certificate, and then export the certificate and key to allow the user to install them manually. [WEBCRYPTO]
listingmenuitemTo implement a custom context menu, use script to handle the
contextmenuevent.nextidUse GUIDs instead.
noembedparamUse the
dataattribute of theobjectelement to set the URL of the external resource.plaintextUse the “
text/plain” MIME type instead.rbrtcProviding the ruby base directly inside the
rubyelement or using nestedrubyelements is sufficient.strikeUse
delinstead if the element is marking an edit, otherwise usesinstead.xmpUse
preandcodeinstead, and escape “<” and “&” characters as “<” and “&” respectively.basefontbigblinkcenterfontmarqueemulticolnobrspacertt-
Use appropriate elements or CSS instead.
Where the
ttelement would have been used for marking up keyboard input, consider thekbdelement; for variables, consider thevarelement; for computer code, consider thecodeelement; and for computer output, consider thesampelement.Similarly, if the
bigelement is being used to denote a heading, consider using theh1element; if it is being used for marking up important passages, consider thestrongelement; and if it is being used for highlighting text for reference purposes, consider themarkelement.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:
charsetonaelementscharsetonlinkelementsUse an HTTP `
Content-Type` header on the linked resource instead.charsetonscriptelements (except as noted in the previous section)Omit the attribute. Both documents and scripts are required to use UTF-8, so it is redundant to specify it on the
scriptelement since it inherits from the document.coordsonaelementsshapeonaelementsmethodsonaelementsmethodsonlinkelementsUse the HTTP OPTIONS feature instead.
nameonaelements (except as noted in the previous section)nameonembedelementsnameonimgelementsnameonoptionelementsUse the
idattribute instead.revonaelementsrevonlinkelementsUse the
relattribute instead, with an opposite term. (For example, instead ofrev="made", userel="author".)urnonaelementsurnonlinkelementsSpecify the preferred persistent identifier using the
hrefattribute instead.acceptonformelementsUse the
acceptattribute directly on theinputelements instead.hreflangonareaelementstypeonareaelementsThese attributes do not do anything useful, and for historical reasons there are no corresponding IDL attributes on
areaelements. Omit them altogether.nohrefonareaelementsOmitting the
hrefattribute is sufficient; thenohrefattribute is unnecessary. Omit it altogether.profileonheadelementsUnnecessary. Omit it altogether.
manifestonhtmlelementsUse service workers instead. [SW]
versiononhtmlelementsUnnecessary. Omit it altogether.
ismaponinputelementsUnnecessary. Omit it altogether. All
inputelements with atypeattribute in the Image Button state are processed as server-side image maps.usemaponinputelementsusemaponobjectelementsUse the
imgelement for image maps.longdesconiframeelementslongdesconimgelementsUse a regular
aelement to link to the description, or (in the case of images) use an image map to provide a link from the image to the image’s description.lowsrconimgelementsUse a progressive JPEG image (given in the
srcattribute), instead of using two separate images.targetonlinkelementsUnnecessary. Omit it altogether.
typeonmenuelementsTo implement a custom context menu, use script to handle the
contextmenuevent. For toolbar menus, omit the attribute.labelonmenuelementscontextmenuon all elementsonshowon all elementsTo implement a custom context menu, use script to handle the
contextmenuevent.schemeonmetaelementsUse only one scheme per field, or make the scheme declaration part of the value.
archiveonobjectelementsclassidonobjectelementscodeonobjectelementscodebaseonobjectelementscodetypeonobjectelementsdeclareonobjectelementsRepeat the
objectelement completely each time the resource is to be reused.standbyonobjectelementsOptimize the linked resource so that it loads quickly or, at least, incrementally.
typemustmatchonobjectelementsAvoid using
objectelements with untrusted resources.languageonscriptelements (except as noted in the previous section)Omit the attribute for JavaScript; for data blocks, use the
typeattribute instead.eventonscriptelementsforonscriptelementsUse DOM events mechanisms to register event listeners. [DOM]
typeonstyleelements (except as noted in the previous section)Omit the attribute for CSS; for data blocks, use
scriptas the container instead ofstyle.datapagesizeontableelementsUnnecessary. Omit it altogether.
summaryontableelementsUse one of the techniques for describing tables given in the
tablesection instead.abbrontdelementsUse text that begins in an unambiguous and terse manner, and include any more elaborate text after that. The
titleattribute can also be useful in including more detailed text, so that the cell’s contents can be made terse. If it’s a heading, useth(which has anabbrattribute).axisontdandthelementsscopeontdelementsUse
thelements for heading cells.datasrcona,button,div,frame,iframe,img,input,label,legend,marquee,object,option,select,span,table, andtextareaelementsdatafldona,button,div,fieldset,frame,iframe,img,input,label,legend,marquee,object,select,span, andtextareaelementsdataformatasonbutton,div,input,label,legend,marquee,object,option,select,span, andtableelementsUse script and a mechanism such as
XMLHttpRequestto populate the page dynamically. [XHR]dropzoneon all elementsUse script to handle the
dragenteranddragoverevents instead.alinkonbodyelementsbgcoloronbodyelementsbottommarginonbodyelementsleftmarginonbodyelementslinkonbodyelementsmarginheightonbodyelementsmarginwidthonbodyelementsrightmarginonbodyelementstextonbodyelementstopmarginonbodyelementsvlinkonbodyelementsclearonbrelementsalignoncaptionelementsalignoncolelementscharoncolelementscharoffoncolelementsvalignoncolelementswidthoncolelementsalignondivelementscompactondlelementsalignonembedelementshspaceonembedelementsvspaceonembedelementsalignonhrelementscoloronhrelementsnoshadeonhrelementssizeonhrelementswidthonhrelementsalignonh1—h6elementsalignoniframeelementsallowtransparencyoniframeelementsframeborderoniframeelementsframespacingoniframeelementshspaceoniframeelementsmarginheightoniframeelementsmarginwidthoniframeelementsscrollingoniframeelementsvspaceoniframeelementsalignoninputelementsborderoninputelementshspaceoninputelementsvspaceoninputelementsalignonimgelementsborderonimgelements (except as noted in the previous section)hspaceonimgelementsvspaceonimgelementsalignonlegendelementstypeonlielementscompactonmenuelementsalignonobjectelementsborderonobjectelementshspaceonobjectelementsvspaceonobjectelementscompactonolelementsalignonpelementswidthonpreelementsalignontableelementsbgcolorontableelementsborderontableelementsbordercolorontableelementscellpaddingontableelementscellspacingontableelementsframeontableelementsheightontableelementsrulesontableelementswidthontableelementsalignontbody,thead, andtfootelementscharontbody,thead, andtfootelementscharoffontbody,thead, andtfootelementsheightonthead,tbody, andtfootelementsvalignontbody,thead, andtfootelementsalignontdandthelementsbgcolorontdandthelementscharontdandthelementscharoffontdandthelementsheightontdandthelementsnowrapontdandthelementsvalignontdandthelementswidthontdandthelementsalignontrelementsbgcolorontrelementscharontrelementscharoffontrelementsheightontrelementsvalignontrelementscompactonulelementstypeonulelementsbackgroundonbody,table,thead,tbody,tfoot,tr,td, andthelementsUse CSS instead.
16.3 Requirements for implementations
16.3.1 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 marquee element must implement the HTMLMarqueeElement
interface.
[Exposed =Window ]
interface HTMLMarqueeElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect ] attribute DOMString behavior ;
[CEReactions , Reflect ] attribute DOMString bgColor ;
[CEReactions , Reflect ] attribute DOMString direction ;
[CEReactions , Reflect ] attribute DOMString height ;
[CEReactions , Reflect ] attribute unsigned long hspace ;
[CEReactions ] attribute long loop ;
[CEReactions , Reflect , ReflectDefault=6] attribute unsigned long scrollAmount ;
[CEReactions , Reflect , ReflectDefault=85] attribute unsigned long scrollDelay ;
[CEReactions , Reflect ] attribute boolean trueSpeed ;
[CEReactions , Reflect ] attribute unsigned long vspace ;
[CEReactions , Reflect ] attribute DOMString width ;
undefined start ();
undefined stop ();
};
A marquee element can be turned on or turned off. When it is created, it is turned on.
When the stop() method is called, the marquee element
must be turned off.
The behavior
content attribute on marquee elements is an enumerated attribute with
the following keywords and states (all non-conforming):
| Keyword | State |
|---|---|
scroll
| scroll |
slide
| slide |
alternate
| alternate |
The attribute’s missing value default and invalid value default are both the scroll state.
The direction content attribute on marquee
elements is an enumerated attribute with the following keywords and states (all
non-conforming):
| Keyword | State |
|---|---|
left
| left |
right
| right |
up
| up |
down
| down |
The attribute’s missing value default and invalid value default are both 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:
If the element has a
scrolldelayattribute, 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.If the element does not have a
truespeedattribute, and the delay value is less than 60, then let delay be 60 instead.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:
If the marquee loop count is −1, then return.
Increment the marquee current loop index by one.
If the marquee current loop index is now greater than or equal to the element’s marquee loop count, turn off the
marqueeelement.
16.3.2 Frames
The frameset element acts as the body element in
documents that use frames.
The frameset element must implement the HTMLFrameSetElement
interface.
[Exposed =Window ]
interface HTMLFrameSetElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect ] attribute DOMString cols ;
[CEReactions , Reflect ] attribute DOMString rows ;
};
HTMLFrameSetElement includes WindowEventHandlers ;
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 event handlers of the Window object named by the
Window-reflecting body element event handler set, exposed on the
frameset element, replace the generic event handlers with the same names
normally supported by HTML elements.
The frame element has a content navigable similar
to the iframe element, but rendered within a frameset element.
The frame HTML element insertion steps, given
insertedNode, are:
If insertedNode is not in a document tree, then return.
If insertedNode‘s root‘s browsing context is null, then return.
Create a new child navigable for insertedNode.
Process the
frameattributes for insertedNode, with initialInsertion set to true.
The frame HTML element removing steps, given removedNode,
are to destroy a child navigable given removedNode.
Whenever a frame element with a non-null content navigable has its
src attribute set, changed, or removed, the user
agent must process the frame attributes.
To process the frame attributes for an element element, with
an optional boolean initialInsertion:
Let url be the result of running the shared attribute processing steps for
iframeandframeelements given element and initialInsertion.If url is null, then return.
-
If url matches
about:blankand initialInsertion is true, then:Fire an event named
loadat element.Return.
Navigate an
iframeorframegiven element, url, the empty string, and initialInsertion.
The frame element potentially delays the load event.
The frame element must implement the HTMLFrameElement interface.
[Exposed =Window ]
interface HTMLFrameElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect ] attribute DOMString name ;
[CEReactions , Reflect ] attribute DOMString scrolling ;
[CEReactions , ReflectURL ] attribute USVString src ;
[CEReactions , Reflect ] attribute DOMString frameBorder ;
[CEReactions , ReflectURL ] attribute USVString longDesc ;
[CEReactions , Reflect ] attribute boolean noResize ;
readonly attribute Document ? contentDocument ;
readonly attribute WindowProxy ? contentWindow ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString marginHeight ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString marginWidth ;
};
The contentDocument getter steps are to return
this‘s content document.
The contentWindow getter steps are to return
this‘s content window.
16.3.3 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 {
[CEReactions , Reflect ] attribute DOMString coords ;
[CEReactions , Reflect ] attribute DOMString charset ;
[CEReactions , Reflect ] attribute DOMString name ;
[CEReactions , Reflect ] attribute DOMString rev ;
[CEReactions , Reflect ] attribute DOMString shape ;
};
partial interface HTMLAreaElement {
[CEReactions , Reflect ] attribute boolean noHref ;
};
partial interface HTMLBodyElement {
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString text ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString link ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString vLink ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString aLink ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString bgColor ;
[CEReactions , Reflect ] attribute DOMString background ;
};
The background IDL attribute does not
use ReflectURL or USVString for historical reasons.
partial interface HTMLBRElement {
[CEReactions , Reflect ] attribute DOMString clear ;
};
partial interface HTMLTableCaptionElement {
[CEReactions , Reflect ] attribute DOMString align ;
};
partial interface HTMLTableColElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect="char"] attribute DOMString ch ;
[CEReactions , Reflect="charoff"] attribute DOMString chOff ;
[CEReactions , Reflect ] attribute DOMString vAlign ;
[CEReactions , Reflect ] attribute DOMString width ;
};
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.
[Exposed =Window ]
interface HTMLDirectoryElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect ] attribute boolean compact ;
};
partial interface HTMLDivElement {
[CEReactions , Reflect ] attribute DOMString align ;
};
partial interface HTMLDListElement {
[CEReactions , Reflect ] attribute boolean compact ;
};
partial interface HTMLEmbedElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString name ;
};
The font element must implement the HTMLFontElement interface.
[Exposed =Window ]
interface HTMLFontElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString color ;
[CEReactions , Reflect ] attribute DOMString face ;
[CEReactions , Reflect ] attribute DOMString size ;
};
partial interface HTMLHeadingElement {
[CEReactions , Reflect ] attribute DOMString align ;
};
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 DOM.)
partial interface HTMLHRElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString color ;
[CEReactions , Reflect ] attribute boolean noShade ;
[CEReactions , Reflect ] attribute DOMString size ;
[CEReactions , Reflect ] attribute DOMString width ;
};
partial interface HTMLHtmlElement {
[CEReactions , Reflect ] attribute DOMString version ;
};
partial interface HTMLIFrameElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString scrolling ;
[CEReactions , Reflect ] attribute DOMString frameBorder ;
[CEReactions , ReflectURL ] attribute USVString longDesc ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString marginHeight ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString marginWidth ;
};
partial interface HTMLImageElement {
[CEReactions , Reflect ] attribute DOMString name ;
[CEReactions , ReflectURL ] attribute USVString lowsrc ;
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute unsigned long hspace ;
[CEReactions , Reflect ] attribute unsigned long vspace ;
[CEReactions , ReflectURL ] attribute USVString longDesc ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString border ;
};
partial interface HTMLInputElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString useMap ;
};
partial interface HTMLLegendElement {
[CEReactions , Reflect ] attribute DOMString align ;
};
partial interface HTMLLIElement {
[CEReactions , Reflect ] attribute DOMString type ;
};
partial interface HTMLLinkElement {
[CEReactions , Reflect ] attribute DOMString charset ;
[CEReactions , Reflect ] attribute DOMString rev ;
[CEReactions , Reflect ] attribute DOMString target ;
};
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 {
[CEReactions , Reflect ] attribute boolean compact ;
};
partial interface HTMLMetaElement {
[CEReactions , Reflect ] 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" >
partial interface HTMLObjectElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString archive ;
[CEReactions , Reflect ] attribute DOMString code ;
[CEReactions , Reflect ] attribute boolean declare ;
[CEReactions , Reflect ] attribute unsigned long hspace ;
[CEReactions , Reflect ] attribute DOMString standby ;
[CEReactions , Reflect ] attribute unsigned long vspace ;
[CEReactions , ReflectURL ] attribute DOMString codeBase ;
[CEReactions , Reflect ] attribute DOMString codeType ;
[CEReactions , Reflect ] attribute DOMString useMap ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString border ;
};
partial interface HTMLOListElement {
[CEReactions , Reflect ] attribute boolean compact ;
};
partial interface HTMLParagraphElement {
[CEReactions , Reflect ] attribute DOMString align ;
};
The param element must implement the HTMLParamElement interface.
[Exposed =Window ]
interface HTMLParamElement : HTMLElement {
[HTMLConstructor ] constructor ();
[CEReactions , Reflect ] attribute DOMString name ;
[CEReactions , Reflect ] attribute DOMString value ;
[CEReactions , Reflect ] attribute DOMString type ;
[CEReactions , Reflect ] attribute DOMString valueType ;
};
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 {
[CEReactions , Reflect ] attribute long width ;
};
partial interface HTMLStyleElement {
[CEReactions , Reflect ] attribute DOMString type ;
};
partial interface HTMLScriptElement {
[CEReactions , Reflect ] attribute DOMString charset ;
[CEReactions , Reflect ] attribute DOMString event ;
[CEReactions , Reflect="for"] attribute DOMString htmlFor ;
};
partial interface HTMLTableElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString border ;
[CEReactions , Reflect ] attribute DOMString frame ;
[CEReactions , Reflect ] attribute DOMString rules ;
[CEReactions , Reflect ] attribute DOMString summary ;
[CEReactions , Reflect ] attribute DOMString width ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString bgColor ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString cellPadding ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString cellSpacing ;
};
partial interface HTMLTableSectionElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect="char"] attribute DOMString ch ;
[CEReactions , Reflect="charoff"] attribute DOMString chOff ;
[CEReactions , Reflect ] attribute DOMString vAlign ;
};
partial interface HTMLTableCellElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect ] attribute DOMString axis ;
[CEReactions , Reflect ] attribute DOMString height ;
[CEReactions , Reflect ] attribute DOMString width ;
[CEReactions , Reflect="char"] attribute DOMString ch ;
[CEReactions , Reflect="charoff"] attribute DOMString chOff ;
[CEReactions , Reflect ] attribute boolean noWrap ;
[CEReactions , Reflect ] attribute DOMString vAlign ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString bgColor ;
};
partial interface HTMLTableRowElement {
[CEReactions , Reflect ] attribute DOMString align ;
[CEReactions , Reflect="char"] attribute DOMString ch ;
[CEReactions , Reflect="charoff"] attribute DOMString chOff ;
[CEReactions , Reflect ] attribute DOMString vAlign ;
[CEReactions , Reflect ] attribute [LegacyNullToEmptyString ] DOMString bgColor ;
};
partial interface HTMLUListElement {
[CEReactions , Reflect ] attribute boolean compact ;
[CEReactions , Reflect ] attribute DOMString type ;
};
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.)
partial interface Document {
[CEReactions ] attribute [LegacyNullToEmptyString ] DOMString fgColor ;
[CEReactions ] attribute [LegacyNullToEmptyString ] DOMString linkColor ;
[CEReactions ] attribute [LegacyNullToEmptyString ] DOMString vlinkColor ;
[CEReactions ] attribute [LegacyNullToEmptyString ] DOMString alinkColor ;
[CEReactions ] attribute [LegacyNullToEmptyString ] DOMString bgColor ;
[SameObject ] readonly attribute HTMLCollection anchors ;
[SameObject ] readonly attribute HTMLCollection applets ;
undefined clear ();
undefined captureEvents ();
undefined 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
| 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 nothing. (It exists for historical reasons.)
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.
partial interface Window {
undefined captureEvents ();
undefined releaseEvents ();
[Replaceable , SameObject ] readonly attribute External external ;
};
The captureEvents() and releaseEvents() methods must do nothing.
[Exposed =Window ]
interface External {
undefined AddSearchProvider ();
undefined IsSearchProviderInstalled ();
};
The AddSearchProvider() and IsSearchProviderInstalled() methods
must do nothing.