[html5] r1963 - [e] (0) experimentally try to allow <a> to contain any flow content in certain c [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Jul 30 14:55:35 PDT 2008


Author: ianh
Date: 2008-07-30 14:55:35 -0700 (Wed, 30 Jul 2008)
New Revision: 1963

Modified:
   index
   source
Log:
[e] (0) experimentally try to allow <a> to contain any flow content in certain cases...

Modified: index
===================================================================
--- index	2008-07-30 09:41:06 UTC (rev 1962)
+++ index	2008-07-30 21:55:35 UTC (rev 1963)
@@ -12498,7 +12498,7 @@
 
    <dt>Content model:
 
-   <dd><a href="#phrasing0">Phrasing content</a>, but there must be no <a
+   <dd><a href="#transparent0">Transparent</a>, but there must be no <a
     href="#interactive1">interactive content</a> descendant.
 
    <dt>Element-specific attributes:
@@ -12655,6 +12655,32 @@
    href="#reflect">reflect</a> the <code title=attr-hyperlink-rel><a
    href="#rel3">rel</a></code> content attribute.
 
+  <div class=example>
+   <p>The <code><a href="#a">a</a></code> element may be wrapped around
+    entire paragraphs, lists, tables, and so forth, even entire sections, so
+    long as there are no interactive elements within (e.g. buttons or other
+    links). This example shows how this can be used to make an entire
+    advertising block into a link:</p>
+
+   <pre><aside class="advertising">
+ <h1>Advertising</h1>
+ <a href="http://ad.example.com/?adid=1929&amp;pubid=1422">
+  <section>
+   <h1>Mellblomatic 9000!</h1>
+   <p>Turn all your widgets into mellbloms!</p>
+   <p>Only $9.99 plus shipping and handling.</p>
+  </section>
+ </a>
+ <a href="http://ad.example.com/?adid=375&amp;pubid=1422">
+  <section>
+   <h1>The Mellblom Browser</h1>
+   <p>Web browsing at the speed of light.</p>
+   <p>No other browser goes faster!</p>
+  </section>
+ </a>
+</aside></pre>
+  </div>
+
   <h4 id=the-q><span class=secno>4.5.2 </span>The <dfn
    id=q><code>q</code></dfn> element</h4>
 
@@ -44246,7 +44272,8 @@
    <code><a href="#p">p</a></code>, <code><a href="#pre">pre</a></code>,
    <code><a href="#section">section</a></code>, <code><a
    href="#table">table</a></code>, or <code><a href="#ul">ul</a></code>,
-   element, or if there is no more content in the parent element.</p>
+   element, or if there is no more content in the parent element and the
+   parent element is not an <code><a href="#a">a</a></code> element.</p>
   <!-- </rt> -->
 
   <p>An <code><a href="#rt">rt</a></code> element's <span

Modified: source
===================================================================
--- source	2008-07-30 09:41:06 UTC (rev 1962)
+++ source	2008-07-30 21:55:35 UTC (rev 1963)
@@ -10266,7 +10266,7 @@
    <dt>Contexts in which this element may be used:</dt>
    <dd>Where <span>phrasing content</span> is expected.</dd>
    <dt>Content model:</dt>
-   <dd><span>Phrasing content</span>, but there must be no <span>interactive content</span> descendant.</dd>
+   <dd><span>Transparent</span>, but there must be no <span>interactive content</span> descendant.</dd>
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-hyperlink-href">href</code></dd>
    <dd><code title="attr-hyperlink-target">target</code></dd>
@@ -10414,8 +10414,36 @@
   <span>reflect</span> the <code title="attr-hyperlink-rel">rel</code>
   content attribute.</p>
 
+  <div class="example">
 
+   <p>The <code>a</code> element may be wrapped around entire
+   paragraphs, lists, tables, and so forth, even entire sections, so
+   long as there are no interactive elements within (e.g. buttons or
+   other links). This example shows how this can be used to make an
+   entire advertising block into a link:</p>
 
+   <pre><aside class="advertising">
+ <h1>Advertising</h1>
+ <a href="http://ad.example.com/?adid=1929&amp;pubid=1422">
+  <section>
+   <h1>Mellblomatic 9000!</h1>
+   <p>Turn all your widgets into mellbloms!</p>
+   <p>Only $9.99 plus shipping and handling.</p>
+  </section>
+ </a>
+ <a href="http://ad.example.com/?adid=375&amp;pubid=1422">
+  <section>
+   <h1>The Mellblom Browser</h1>
+   <p>Web browsing at the speed of light.</p>
+   <p>No other browser goes faster!</p>
+  </section>
+ </a>
+</aside></pre>
+
+  </div>
+
+
+
   <h4>The <dfn><code>q</code></dfn> element</h4>
 
   <dl class="element">
@@ -41720,7 +41748,8 @@
   <code>menu</code>, <code>nav</code>, <code>ol</code>,
   <code>p</code>, <code>pre</code>, <code>section</code>,
   <code>table</code>, or <code>ul</code>, element, or if there is no
-  more content in the parent element.</p>
+  more content in the parent element and the parent element is not an
+  <code>a</code> element.</p>
 
   <!-- </rt> -->
   <p>An <code>rt</code> element's <span title="syntax-end-tag">end




More information about the Commit-Watchers mailing list