Skip to content

Commit

Permalink
Obsolete hreflang and type content attributes on <area>
Browse files Browse the repository at this point in the history
Fixes #232.
  • Loading branch information
zcorpan committed Oct 20, 2015
1 parent 3dc7dc9 commit c49398f
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -11895,8 +11895,8 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>

<p>The <dfn><code data-x="attr-link-hreflang">hreflang</code></dfn> attribute on the
<code>link</code> element has the same semantics as the <span
data-x="attr-hyperlink-hreflang"><code>hreflang</code> attribute on <code>a</code> and
<code>area</code> elements</span>.</p>
data-x="attr-hyperlink-hreflang"><code>hreflang</code> attribute on the <code>a</code>
element</span>.</p>

<p>The <dfn><code data-x="attr-link-type">type</code></dfn> attribute gives the <span>MIME
type</span> of the linked resource. It is purely advisory. The value must be a <span>valid MIME
Expand Down Expand Up @@ -20376,12 +20376,12 @@ document.body.appendChild(wbr);</pre>
being a hyperlink between the two.</p>

<p>The <dfn><code data-x="attr-hyperlink-hreflang">hreflang</code></dfn> attribute on
<code>a</code> and <code>area</code> elements that create <span
data-x="hyperlink">hyperlinks</span>, if present, gives the language of the linked resource. It is
purely advisory. The value must be a valid BCP 47 language tag. <ref spec=BCP47>
<span w-nodev>User agents must not consider this attribute authoritative &mdash; upon
fetching the resource, user agents must use only language information associated with the resource
to determine its language, not metadata included in the link to the resource.</span></p>
<code>a</code> elements that create <span data-x="hyperlink">hyperlinks</span>, if present, gives
the language of the linked resource. It is purely advisory. The value must be a valid BCP 47
language tag. <ref spec=BCP47> <span w-nodev>User agents must not consider this attribute
authoritative &mdash; upon fetching the resource, user agents must use only language information
associated with the resource to determine its language, not metadata included in the link to the
resource.</span></p>

<p>The <dfn><code data-x="attr-hyperlink-type">type</code></dfn> attribute, if present, gives the
<span>MIME type</span> of the linked resource. It is purely advisory. The value must be a
Expand Down Expand Up @@ -21550,11 +21550,11 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {

<div w-nodev>

<p>The first <code>link</code>, <code>a</code>, or <code>area</code> element in the document (in
<span>tree order</span>) with the <code data-x="rel-alternate">alternate</code> keyword used with the <code
<p>The first <code>link</code> or <code>a</code> element in the document (in <span>tree
order</span>) with the <code data-x="rel-alternate">alternate</code> keyword used with the <code
data-x="attr-hyperlink-type">type</code> attribute set to the value <code
data-x="">application/rss+xml</code> or the value <code data-x="">application/atom+xml</code> must
be treated as the default syndication feed for the purposes of feed autodiscovery.</p>
data-x="">application/rss+xml</code> or the value <code data-x="">application/atom+xml</code>
must be treated as the default syndication feed for the purposes of feed autodiscovery.</p>

<div class="example">
<p>The following <code>link</code> element gives the syndication
Expand Down Expand Up @@ -36646,8 +36646,6 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {
<dd><code data-x="attr-hyperlink-download">download</code></dd>
<dd><code data-x="attr-hyperlink-ping">ping</code></dd>
<dd><code data-x="attr-hyperlink-rel">rel</code></dd>
<dd><code data-x="attr-hyperlink-hreflang">hreflang</code></dd>
<dd><code data-x="attr-hyperlink-type">type</code></dd>
<dt><span data-x="concept-element-dom">DOM interface</span>:</dt><!--TOPIC:DOM APIs-->
<dd>
<pre class="idl">interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
Expand All @@ -36659,7 +36657,6 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {
[PutForwards=<span data-x="dom-DOMSettableTokenList-value">value</span>] readonly attribute <span>DOMSettableTokenList</span> <span data-x="dom-area-ping">ping</span>;
attribute DOMString <span data-x="dom-area-rel">rel</span>;
readonly attribute <span>DOMTokenList</span> <span data-x="dom-area-relList">relList</span>;
// <span data-x="attr-hyperlink-hreflang">hreflang</span> and <span data-x="attr-hyperlink-type">type</span> are not reflected
};
<span>HTMLAreaElement</span> implements <span>HTMLHyperlinkElementUtils</span>;</pre>
</dd>
Expand Down Expand Up @@ -36773,17 +36770,15 @@ dictionary <dfn>TrackEventInit</dfn> : <span>EventInit</span> {
<code>area</code> element, as described in the next section, the <code
data-x="attr-hyperlink-href">href</code>, <code data-x="attr-hyperlink-target">target</code>, <code
data-x="attr-hyperlink-download">download</code>, and <code data-x="attr-hyperlink-ping">ping</code>
attributes decide how the link is followed. The <code data-x="attr-hyperlink-rel">rel</code>, <code
data-x="attr-hyperlink-hreflang">hreflang</code>, and <code data-x="attr-hyperlink-type">type</code>
attributes may be used to indicate to the user the likely nature of the target resource before the
attributes decide how the link is followed. The <code data-x="attr-hyperlink-rel">rel</code>
attribute may be used to indicate to the user the likely nature of the target resource before the
user follows the link.</p>

</div>

<p>The <code data-x="attr-hyperlink-target">target</code>, <code
data-x="attr-hyperlink-download">download</code>, <code data-x="attr-hyperlink-ping">ping</code>,
<code data-x="attr-hyperlink-rel">rel</code>, <code
data-x="attr-hyperlink-hreflang">hreflang</code>, and <code data-x="attr-hyperlink-type">type</code>
and <code data-x="attr-hyperlink-rel">rel</code>
attributes must be omitted if the <code data-x="attr-hyperlink-href">href</code> attribute is not
present.</p>

Expand Down Expand Up @@ -110697,6 +110692,12 @@ if (s = prompt('What is your name?')) {
<dt><dfn><code data-x="attr-form-accept">accept</code></dfn> on <code>form</code> elements</dt>
<dd><p>Use the <code data-x="attr-input-accept">accept</code> attribute directly on the <code>input</code> elements instead.</p></dd>

<dt><dfn><code data-x="attr-area-hreflang">hreflang</code></dfn> on <code>area</code>
elements</dt>
<dt><dfn><code data-x="attr-area-type">type</code></dfn> on <code>area</code> elements</dt>
<dd><p>These attributes do not do anything useful, and for historical reasons there are no
corresponding IDL attributes on <code>area</code> elements. Omit them altogether.</p></dd>

<dt><dfn><code data-x="attr-area-nohref">nohref</code></dfn> on <code>area</code> elements</dt>
<dd><p>Omitting the <code data-x="attr-hyperlink-href">href</code>
attribute is sufficient; the <code
Expand Down Expand Up @@ -112919,8 +112920,6 @@ if (s = prompt('What is your name?')) {
<code data-x="attr-hyperlink-download">download</code>;
<code data-x="attr-hyperlink-ping">ping</code>;
<code data-x="attr-hyperlink-rel">rel</code>;
<code data-x="attr-hyperlink-hreflang">hreflang</code>;
<code data-x="attr-hyperlink-type">type</code></td>
<td><code>HTMLAreaElement</code></td>
</tr>

Expand Down Expand Up @@ -115297,7 +115296,6 @@ if (s = prompt('What is your name?')) {
<tr>
<th> <code data-x="">hreflang</code>
<td> <code data-x="attr-hyperlink-hreflang">a</code>;
<code data-x="attr-hyperlink-hreflang">area</code>;
<code data-x="attr-link-hreflang">link</code>
<td> Language of the linked resource
<td> Valid BCP 47 language tag
Expand Down Expand Up @@ -115796,7 +115794,6 @@ if (s = prompt('What is your name?')) {
<tr>
<th> <code data-x="">type</code>
<td> <code data-x="attr-hyperlink-type">a</code>;
<code data-x="attr-hyperlink-type">area</code>;
<code data-x="attr-link-type">link</code>
<td> Hint for the type of the referenced resource
<td> <span>Valid MIME type</span>
Expand Down

0 comments on commit c49398f

Please sign in to comment.