Authors and documents must not use the features listed in this section. They are documented to enable user agents to support legacy content in an interoperable fashion.
applet
elementThe applet
element is a Java-specific variant of the
embed
element. In HTML5 the applet
element
is obsoleted so that all extension frameworks (Java, .NET, Flash,
etc) are handled in a consistent manner.
If the sandboxed plugins browsing
context flag is set on the browsing context for
which the applet
element's document is the active
document, then the element must be ignored (it represents
nothing).
Otherwise, define how the element works, if supported.
[XXX] interface HTMLDocument { readonly attribute HTMLCollection applets; };
The applets
attribute must return an HTMLCollection
rooted at the
Document
node, whose filter matches only
applet
elements.
marquee
element...
The following elements are obsolete and either have no meaning whatsoever or have no requirements beyond those described elsewhere in this specification:
center
The following attributes are obsolete and either have no meaning whatsoever or have no requirements beyond those described elsewhere in this specification:
name
on a
elementsalink
on body
elementsbgcolor
on body
elementslink
on body
elementstext
on body
elementsvlink
on body
elementsThese APIs expose obsolete content attributes.
The [XXX] below is for some annotation meaning "this is just another part of the named interface, and should be treated as if it had been part of the main interface definition".
[XXX] interface HTMLBodyElement { attribute DOMString text; attribute DOMString bgColor; attribute DOMString background; attribute DOMString link; attribute DOMString vLink; attribute DOMString aLink; };
The text
DOM
attribute of the body
element must reflect
the element's text
content
attribute.
The bgColor
DOM
attribute of the body
element must reflect
the element's bgcolor
content
attribute.
The background
DOM
attribute of the body
element must reflect
the element's background
content
attribute.
The link
DOM
attribute of the body
element must reflect
the element's link
content
attribute.
The aLink
DOM
attribute of the body
element must reflect
the element's alink
content
attribute.
The vLink
DOM
attribute of the body
element must reflect
the element's vlink
content
attribute.
[XXX] interface HTMLDocument { attribute DOMString fgColor; attribute DOMString bgColor; attribute DOMString linkColor; attribute DOMString vlinkColor; attribute DOMString alinkColor; };
The fgColor
attribute on the Document
object must
reflect the text
attribute on the body element.
The bgColor
attribute on the Document
object must
reflect the bgcolor
attribute on the body element.
The linkColor
attribute on the Document
object must
reflect the link
attribute on the body element.
The vLinkColor
attribute on the Document
object must
reflect the vlink
attribute on the body element.
The aLinkColor
attribute on the Document
object must
reflect the alink
attribute on the body element.
To ease the transition from HTML4 Transitional documents to the language defined in this specification, conformance checkers are encouraged to categorise errors that represent usage of old obsolete features that generally have no effect (as defined below) into a separate part of their report, to allow authors to distinguish between likely mistakes and mere vestigial markup.
The following errors may be categorised as described above:
The DOCTYPE parse error, if the DOCTYPE token's
name
is an ASCII
case-insensitive match for the string "HTML
", and either:
-//W3C//DTD HTML 4.0//EN
" and the
token's system identifier is either missing or the
case-sensitive string "http://www.w3.org/TR/REC-html40/strict.dtd
", or-//W3C//DTD HTML 4.01//EN
" and the
token's system identifier is either missing or the
case-sensitive string "http://www.w3.org/TR/html4/strict.dtd
", or-//W3C//DTD XHTML 1.0 Strict//EN
"
and the token's system identifier is either missing or the
case-sensitive string "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
",
or-//W3C//DTD XHTML 1.1//EN
"
and the token's system identifier is either missing or the
case-sensitive string "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
".The presence of a profile
attribute on the
head
element, if its value is an unordered set
of unique space-separated tokens where the words are all
valid URLs.
The presence of a meta
element with an http-equiv
attribute in the
Content
Language state.
The presence of a border
attribute on an
img
element if its value is the string "0
".
The presence of a longdesc
attribute on an
img
element, if its value is a valid
URL.
The presence of a language
attribute on a
script
element if its value is an ASCII
case-insensitive match for the string "JavaScript
".
The presence of a name
attribute on an a
element, if its value is not the
empty string.
The presence of a summary
attribute on a
table
element.
The presence of a noframes
element.