Skip to content
Permalink
Browse files

[cgiow] (0) Drop <a media> and <area media>.

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 66fcb2357f205448fe2f40d7834a1e8ea2ed283b
Showing with 55 additions and 119 deletions.
  1. +17 −37 complete.html
  2. +17 −37 index
  3. +21 −45 source
<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-->
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>;

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>
<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>

</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
<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-->
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>;

<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
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
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
<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>
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>

<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>
<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>
<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

0 comments on commit 66fcb23

Please sign in to comment.