- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 30 Jul 2008 21:56:12 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv15715
Modified Files:
Overview.html
Log Message:
experimentally try to allow <a> to contain any flow content in certain cases... (whatwg r1963)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1154
retrieving revision 1.1155
diff -u -d -r1.1154 -r1.1155
--- Overview.html 30 Jul 2008 10:30:57 -0000 1.1154
+++ Overview.html 30 Jul 2008 21:56:09 -0000 1.1155
@@ -12569,7 +12569,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:
@@ -12726,6 +12726,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>
@@ -44317,7 +44343,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
Received on Wednesday, 30 July 2008 21:56:47 UTC