Skip to content

Commit

Permalink
[cgiow] (0) Drop <a media> and <area media>.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20521
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@7618 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 30, 2012
1 parent 00d58f3 commit 66fcb23
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 119 deletions.
54 changes: 17 additions & 37 deletions complete.html
Expand Up @@ -20356,7 +20356,6 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn
<dd><code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code></dd>
<dd><code title=attr-hyperlink-ping><a href=#ping>ping</a></code></dd>
<dd><code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code></dd>
<dd><code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code></dd>
<dd><code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code></dd>
<dd><code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code></dd>
<dt><a href=#element-dfn-dom title=element-dfn-dom>DOM interface</a>:</dt><!--TOPIC:DOM APIs-->
Expand All @@ -20368,7 +20367,6 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn
attribute DOMString <a href=#dom-a-ping title=dom-a-ping>ping</a>;
attribute DOMString <a href=#dom-a-rel title=dom-a-rel>rel</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-a-rellist title=dom-a-relList>relList</a>;
attribute DOMString <a href=#dom-a-media title=dom-a-media>media</a>;
attribute DOMString <a href=#dom-a-hreflang title=dom-a-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-a-type title=dom-a-type>type</a>;

Expand Down Expand Up @@ -20397,8 +20395,9 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn
placed, if it had been relevant, consisting of just the element's contents.</p>

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

<p>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> is specified on an <code><a href=#the-a-element>a</a></code> element,
then the <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attribute must also be specified.</p>
Expand All @@ -20424,9 +20423,9 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn
<p>The <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code>, <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>, <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code>, and <code title=attr-hyperlink-ping><a href=#ping>ping</a></code>
attributes affect what happens when users <a href=#following-hyperlinks title="following hyperlinks">follow
hyperlinks</a> or <a href=#downloading-hyperlinks title="downloading hyperlinks">download hyperlinks</a> created using
the <code><a href=#the-a-element>a</a></code> element. The <code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>, <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>,
and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes may be used to indicate to the user
the likely nature of the target resource before the user follows the link.</p>
the <code><a href=#the-a-element>a</a></code> element. The <code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code>
attributes may be used to indicate to the user the likely nature of the target resource before the
user follows the link.</p>

<p>The <a href=#activation-behavior>activation behavior</a> of <code><a href=#the-a-element>a</a></code> elements that create <a href=#hyperlink title=hyperlink>hyperlinks</a> is to run the following steps:</p>

Expand Down Expand Up @@ -20480,8 +20479,7 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn
</dl><div class=impl>

<p>The IDL attributes <dfn id=dom-a-href title=dom-a-href><code>href</code></dfn>, <dfn id=dom-a-download title=dom-a-download><code>download</code></dfn>, <dfn id=dom-a-ping title=dom-a-ping><code>ping</code></dfn>, <dfn id=dom-a-target title=dom-a-target><code>target</code></dfn>,
<dfn id=dom-a-rel title=dom-a-rel><code>rel</code></dfn>, <dfn id=dom-a-media title=dom-a-media><code>media</code></dfn>,
<dfn id=dom-a-hreflang title=dom-a-hreflang><code>hreflang</code></dfn>, and <dfn id=dom-a-type title=dom-a-type><code>type</code></dfn>, must <a href=#reflect>reflect</a> the respective content
<dfn id=dom-a-rel title=dom-a-rel><code>rel</code></dfn>, <dfn id=dom-a-hreflang title=dom-a-hreflang><code>hreflang</code></dfn>, and <dfn id=dom-a-type title=dom-a-type><code>type</code></dfn>, must <a href=#reflect>reflect</a> the respective content
attributes of the same name.</p>

<p>The IDL attribute <dfn id=dom-a-rellist title=dom-a-rellist><code>relList</code></dfn> must
Expand Down Expand Up @@ -40795,7 +40793,6 @@ <h4 id=the-area-element><span class=secno>4.8.13 </span>The <dfn><code>area</cod
<dd><code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code></dd>
<dd><code title=attr-hyperlink-ping><a href=#ping>ping</a></code></dd>
<dd><code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code></dd>
<dd><code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code></dd>
<dd><code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code></dd>
<dd><code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code></dd>
<dt><a href=#element-dfn-dom title=element-dfn-dom>DOM interface</a>:</dt><!--TOPIC:DOM APIs-->
Expand All @@ -40810,7 +40807,6 @@ <h4 id=the-area-element><span class=secno>4.8.13 </span>The <dfn><code>area</cod
attribute DOMString <a href=#dom-area-ping title=dom-area-ping>ping</a>;
attribute DOMString <a href=#dom-area-rel title=dom-area-rel>rel</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-area-rellist title=dom-area-relList>relList</a>;
attribute DOMString <a href=#dom-area-media title=dom-area-media>media</a>;
attribute DOMString <a href=#dom-area-hreflang title=dom-area-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-area-type title=dom-area-type>type</a>;

Expand Down Expand Up @@ -40929,15 +40925,16 @@ <h4 id=the-area-element><span class=secno>4.8.13 </span>The <dfn><code>area</cod
<p>When user agents allow users to <a href=#following-hyperlinks title="following hyperlinks">follow hyperlinks</a> or
<a href=#downloading-hyperlinks title="downloading hyperlinks">download hyperlinks</a> created using the
<code><a href=#the-area-element>area</a></code> element, as described in the next section, the <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code>, <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>, <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code>, and <code title=attr-hyperlink-ping><a href=#ping>ping</a></code>
attributes decide how the link is followed. The <code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>, <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>,
and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes may be used to indicate to the user
the likely nature of the target resource before the user follows the link.</p>
attributes decide how the link is followed. The <code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code>
attributes 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 title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>, <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code>, <code title=attr-hyperlink-ping><a href=#ping>ping</a></code>,
<code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>, <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>,
<code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes must be omitted if the <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attribute is not present.</p>
<code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code>
attributes must be omitted if the <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attribute is not
present.</p>

<p>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> is specified on an <code><a href=#the-area-element>area</a></code>
element, then the <code title=attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> attribute must also be
Expand All @@ -40964,7 +40961,7 @@ <h4 id=the-area-element><span class=secno>4.8.13 </span>The <dfn><code>area</cod
preference.</li>

</ol><p>The IDL attributes <dfn id=dom-area-alt title=dom-area-alt><code>alt</code></dfn>, <dfn id=dom-area-coords title=dom-area-coords><code>coords</code></dfn>, <dfn id=dom-area-href title=dom-area-href><code>href</code></dfn>, <dfn id=dom-area-target title=dom-area-target><code>target</code></dfn>, <dfn id=dom-area-download title=dom-area-download><code>download</code></dfn>, <dfn id=dom-area-ping title=dom-area-ping><code>ping</code></dfn>, <dfn id=dom-area-rel title=dom-area-rel><code>rel</code></dfn>,
<dfn id=dom-area-media title=dom-area-media><code>media</code></dfn>, <dfn id=dom-area-hreflang title=dom-area-hreflang><code>hreflang</code></dfn>, and <dfn id=dom-area-type title=dom-area-type><code>type</code></dfn>, each must <a href=#reflect>reflect</a> the respective
<dfn id=dom-area-hreflang title=dom-area-hreflang><code>hreflang</code></dfn>, and <dfn id=dom-area-type title=dom-area-type><code>type</code></dfn>, each must <a href=#reflect>reflect</a> the respective
content attributes of the same name.</p>

<p>The IDL attribute <dfn id=dom-area-shape title=dom-area-shape><code>shape</code></dfn> must
Expand Down Expand Up @@ -59845,12 +59842,6 @@ <h4 id=links-created-by-a-and-area-elements><span class=secno>4.12.2 </span>Link
document has no particular relationship with the destination
resource other than there being a hyperlink between the two.</p>

<p>The <dfn id=attr-hyperlink-media title=attr-hyperlink-media><code>media</code></dfn>
attribute describes for which media the target document was
designed. It is purely advisory. The value must be a <a href=#valid-media-query>valid
media query</a>. The default, if the <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code> attribute is omitted, is
"<code title="">all</code>".</p>

<p>The <dfn id=attr-hyperlink-hreflang title=attr-hyperlink-hreflang><code>hreflang</code></dfn>
attribute on <code><a href=#the-a-element>a</a></code> and <code><a href=#the-area-element>area</a></code> elements that
create <a href=#hyperlink title=hyperlink>hyperlinks</a>, if present, gives
Expand Down Expand Up @@ -60494,12 +60485,7 @@ <h5 id=rel-alternate><span class=secno>4.12.5.1 </span>Link type "<dfn title=rel
<p>The keyword creates a <a href=#hyperlink>hyperlink</a> referencing an
alternate representation of the current document.</p>

<p>The nature of the referenced document is given by the <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes.</p>

<p>If the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
used with the <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>
attribute, it indicates that the referenced document is intended for
use with the media specified.</p>
<p>The nature of the referenced document is given by the <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes.</p>

<p>If the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
used with the <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>
Expand All @@ -60512,9 +60498,7 @@ <h5 id=rel-alternate><span class=secno>4.12.5.1 </span>Link type "<dfn title=rel
attribute, it indicates that the referenced document is a
reformulation of the current document in the specified format.</p>

<p>The <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes can be combined
when specified with the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code>
keyword.</p>
<p>The <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code> and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes can be combined when specified with the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword.</p>

<div class=example>

Expand Down Expand Up @@ -100975,7 +100959,6 @@ <h3 class=no-num id=elements-1>Elements</h3>
<code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code>;
<code title=attr-hyperlink-ping><a href=#ping>ping</a></code>;
<code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>;
<code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>;
<code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>;
<code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code></td>
<td><code><a href=#htmlanchorelement>HTMLAnchorElement</a></code></td>
Expand Down Expand Up @@ -101009,7 +100992,6 @@ <h3 class=no-num id=elements-1>Elements</h3>
<code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code>;
<code title=attr-hyperlink-ping><a href=#ping>ping</a></code>;
<code title=attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code>;
<code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>;
<code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>;
<code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code></td>
<td><code><a href=#htmlareaelement>HTMLAreaElement</a></code></td>
Expand Down Expand Up @@ -102905,9 +102887,7 @@ <h3 class=no-num id=element-content-categories>Element content categories</h3>
<td> Maximum length of value
<td> <a href=#valid-non-negative-integer>Valid non-negative integer</a>
<tr><th> <code title="">media</code>
<td> <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>a</a></code>;
<code title=attr-hyperlink-media><a href=#attr-hyperlink-media>area</a></code>;
<code title=attr-link-media><a href=#attr-link-media>link</a></code>;
<td> <code title=attr-link-media><a href=#attr-link-media>link</a></code>;
<code title=attr-source-media><a href=#attr-source-media>source</a></code>;
<code title=attr-style-media><a href=#attr-style-media>style</a></code>
<td> Applicable media
Expand Down

0 comments on commit 66fcb23

Please sign in to comment.