Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolete <object usemap> #6283

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 21 additions & 35 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -10916,7 +10916,6 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%
<li><code>img</code> (if the <code data-x="attr-hyperlink-usemap">usemap</code> attribute is present)</li>
<li><code>input</code> (if the <code data-x="attr-input-type">type</code> attribute is <em>not</em> in the <span data-x="attr-input-type-hidden">Hidden</span> state)</li>
<li><code>label</code></li>
<li><code>object</code> (if the <code data-x="attr-hyperlink-usemap">usemap</code> attribute is present)<!-- see also comment in <object> element section --></li>
<li><code>select</code></li>
<li><code>textarea</code></li>
<li><code>video</code> (if the <code data-x="attr-media-controls">controls</code> attribute is present)</li>
Expand Down Expand Up @@ -31196,7 +31195,7 @@ interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
<dd><span>Flow content</span>.</dd>
<dd><span>Phrasing content</span>.</dd>
<dd><span>Embedded content</span>.</dd>
<dd>If the element has a <code data-x="attr-hyperlink-usemap">usemap</code> attribute: <span>Interactive content</span>.</dd> <!-- also when showing a plugin or a nested browsing context, but checking that statically is hard...) -->
<!-- Interactive content when showing a plugin or a nested browsing context, but checking that statically is hard... -->
<dd><span data-x="category-listed">Listed</span> <span>form-associated element</span>.</dd>
<dd><span>Palpable content</span>.</dd>
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
Expand All @@ -31208,7 +31207,6 @@ interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
<dd><code data-x="attr-object-data">data</code></dd>
<dd><code data-x="attr-object-type">type</code></dd>
<dd><code data-x="attr-object-name">name</code></dd>
<dd><code data-x="attr-hyperlink-usemap">usemap</code></dd>
<dd><code data-x="attr-fae-form">form</code></dd>
<dd><code data-x="attr-dim-width">width</code></dd>
<dd><code data-x="attr-dim-height">height</code></dd>
Expand All @@ -31225,7 +31223,6 @@ interface <dfn>HTMLObjectElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute USVString <span data-x="dom-object-data">data</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-object-type">type</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-object-name">name</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-object-useMap">useMap</span>;
readonly attribute <span>HTMLFormElement</span>? <span data-x="dom-fae-form">form</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-dim-width">width</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-dim-height">height</span>;
Expand Down Expand Up @@ -31764,11 +31761,6 @@ interface <dfn>HTMLObjectElement</dfn> : <span>HTMLElement</span> {

</div>

<p>The <code data-x="attr-hyperlink-usemap">usemap</code> attribute, if present while the
<code>object</code> element represents an image, can indicate that the object has an associated
<span>image map</span>. <span w-nodev>The attribute must be ignored if the
<code>object</code> element doesn't represent an image.</span></p>

<p>The <code data-x="attr-fae-form">form</code> attribute is used to explicitly associate the
<code>object</code> element with its <span>form owner</span>.</p>

Expand All @@ -31778,11 +31770,9 @@ interface <dfn>HTMLObjectElement</dfn> : <span>HTMLElement</span> {

<p>The IDL attributes <dfn attribute for="HTMLObjectElement"><code
data-x="dom-object-data">data</code></dfn>, <dfn attribute for="HTMLObjectElement"><code
data-x="dom-object-type">type</code></dfn> and <dfn attribute for="HTMLObjectElement"><code
data-x="dom-object-type">type</code></dfn>, and <dfn attribute for="HTMLObjectElement"><code
data-x="dom-object-name">name</code></dfn> each must <span>reflect</span> the respective content
attributes of the same name. The <dfn attribute for="HTMLObjectElement"><code
data-x="dom-object-useMap">useMap</code></dfn> IDL attribute must <span>reflect</span> the <code
data-x="attr-hyperlink-usemap">usemap</code> content attribute.</p>
attributes of the same name.</p>

<p>The <dfn attribute for="HTMLObjectElement"><code
data-x="dom-object-contentDocument">contentDocument</code></dfn> IDL attribute, on getting, must
Expand Down Expand Up @@ -39058,12 +39048,11 @@ interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
<p>An <dfn>image map</dfn> allows geometric areas on an image to be associated with <span
data-x="hyperlink">hyperlinks</span>.</p>

<p>An image, in the form of an <code>img</code> element or an <code>object</code> element
representing an image, may be associated with an image map (in the form of a <code>map</code>
element) by specifying a <dfn element-attr><code
data-x="attr-hyperlink-usemap">usemap</code></dfn> attribute on the <code>img</code> or
<code>object</code> element. The <code data-x="attr-hyperlink-usemap">usemap</code> attribute, if
specified, must be a <span>valid hash-name reference</span> to a <code>map</code> element.</p>
<p>An image, in the form of an <code>img</code> element, may be associated with an image map (in
the form of a <code>map</code> element) by specifying a <dfn element-attr><code
data-x="attr-hyperlink-usemap">usemap</code></dfn> attribute on the <code>img</code> element. The
<code data-x="attr-hyperlink-usemap">usemap</code> attribute, if specified, must be a <span>valid
hash-name reference</span> to a <code>map</code> element.</p>

<div class="example">

Expand Down Expand Up @@ -39093,9 +39082,8 @@ interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {

<h5 id="image-map-processing-model"><span id="processing-model"></span>Processing model</h5>

<p>If an <code>img</code> element or an <code>object</code> element representing an image has a
<code data-x="attr-hyperlink-usemap">usemap</code> attribute specified, user agents must process it
as follows:</p>
<p>If an <code>img</code> element has a <code data-x="attr-hyperlink-usemap">usemap</code>
attribute specified, user agents must process it as follows:</p>

<ol>
<li><p>Parse the attribute's value using the <span>rules for parsing a hash-name reference</span>
Expand All @@ -39114,11 +39102,6 @@ interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
<p>If the user agent intends to show the text that the <code>img</code> element represents, then
it must use the following steps.</p>

<p class="note">In user agents that do not support images, or that have images disabled,
<code>object</code> elements cannot represent images, and thus this section never applies (the
<span>fallback content</span> is shown instead). The following steps therefore only apply to
<code>img</code> elements.</p>

<ol>
<li><p>Remove all the <code>area</code> elements in <var>areas</var> that have no <code
data-x="attr-hyperlink-href">href</code> attribute.</p></li>
Expand Down Expand Up @@ -39284,9 +39267,9 @@ interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
and activated (e.g. using a keyboard).</p>

<p class="note">Because a <code>map</code> element (and its <code>area</code> elements) can be
associated with multiple <code>img</code> and <code>object</code> elements, it is possible for an
<code>area</code> element to correspond to multiple <i data-x="focusable area">focusable areas</i>
of the document.</p>
associated with multiple <code>img</code> elements, it is possible for an <code>area</code>
element to correspond to multiple <i data-x="focusable area">focusable areas</i> of the
document.</p>

<p>Image maps are <span>live</span>; if the DOM is mutated, then the user agent must act as if it
had rerun the algorithms for image maps.</p>
Expand Down Expand Up @@ -115810,7 +115793,8 @@ if (s = prompt('What is your name?')) {
Button</span> state are processed as server-side image maps.</p></dd>

<dt><dfn element-attr for="input"><code data-x="attr-input-usemap">usemap</code></dfn> on <code>input</code> elements</dt>
<dd><p>Use <code>img</code> instead of <code>input</code> for image maps.</p></dd>
<dt><dfn element-attr for="object"><code data-x="attr-object-usemap">usemap</code></dfn> on <code>object</code> elements</dt>
<dd><p>Use the <code>img</code> element for image maps.</p></dd>

<dt><dfn element-attr for="iframe"><code data-x="attr-iframe-longdesc">longdesc</code></dfn> on <code>iframe</code> elements</dt>
<dt><dfn element-attr for="img"><code data-x="attr-img-longdesc">longdesc</code></dfn> on <code>img</code> elements</dt>
Expand Down Expand Up @@ -116761,6 +116745,7 @@ interface <dfn>HTMLFontElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute unsigned long <span data-x="dom-object-vspace">vspace</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-object-codeBase">codeBase</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-object-codeType">codeType</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-object-useMap">useMap</span>;

[<span>CEReactions</span>] attribute [<span>LegacyNullToEmptyString</span>] DOMString <span data-x="dom-object-border">border</span>;
};</code></pre>
Expand All @@ -116787,6 +116772,10 @@ interface <dfn>HTMLFontElement</dfn> : <span>HTMLElement</span> {
element must <span>reflect</span> the element's <code
data-x="attr-object-codetype">codetype</code> content attribute.</p>

<p>The <dfn attribute for="HTMLObjectElement"><code data-x="dom-object-useMap">useMap</code></dfn>
IDL attribute must <span>reflect</span> the <code data-x="attr-hyperlink-usemap">usemap</code>
content attribute.</p>

<hr>

<pre><code class="idl">partial interface <span id="HTMLOListElement-partial">HTMLOListElement</span> {
Expand Down Expand Up @@ -119006,7 +118995,6 @@ interface <dfn>MimeType</dfn> {
<code data-x="attr-object-data">data</code>;
<code data-x="attr-object-type">type</code>;
<code data-x="attr-object-name">name</code>;
<code data-x="attr-hyperlink-usemap">usemap</code>;
<code data-x="attr-fae-form">form</code>;
<code data-x="attr-dim-width">width</code>;
<code data-x="attr-dim-height">height</code></td>
Expand Down Expand Up @@ -119915,7 +119903,6 @@ interface <dfn>MimeType</dfn> {
<code>audio</code> (if the <code data-x="attr-media-controls">controls</code> attribute is present);
<code>img</code> (if the <code data-x="attr-hyperlink-usemap">usemap</code> attribute is present);
<code>input</code> (if the <code data-x="attr-input-type">type</code> attribute is <em>not</em> in the <span data-x="attr-input-type-hidden">Hidden</span> state);
<code>object</code> (if the <code data-x="attr-hyperlink-usemap">usemap</code> attribute is present)<!-- see also comment in <object> section -->;
<code>video</code> (if the <code data-x="attr-media-controls">controls</code> attribute is present)

<tr>
Expand Down Expand Up @@ -121027,8 +121014,7 @@ interface <dfn>MimeType</dfn> {
<td> "<code data-x="">module</code>"; a <span>valid MIME type string</span> that is not a <span>JavaScript MIME type essence match</span>
<tr>
<th> <code data-x="">usemap</code>
<td> <code data-x="attr-hyperlink-usemap">img</code>;
<code data-x="attr-hyperlink-usemap">object</code>
<td> <code data-x="attr-hyperlink-usemap">img</code>
<td> Name of <span>image map</span> to use
<td> <span>Valid hash-name reference</span>*
<tr>
Expand Down