W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2008

html5/spec Overview.html,1.1154,1.1155

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 30 Jul 2008 21:56:12 +0000
To: public-html-commits@w3.org
Message-Id: <E1KOJeW-00049F-Bn@lionel-hutz.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>&lt;aside class="advertising">
+ &lt;h1>Advertising&lt;/h1>
+ &lt;a href="http://ad.example.com/?adid=1929&amp;amp;pubid=1422">
+  &lt;section>
+   &lt;h1>Mellblomatic 9000!&lt;/h1>
+   &lt;p>Turn all your widgets into mellbloms!&lt;/p>
+   &lt;p>Only $9.99 plus shipping and handling.&lt;/p>
+  &lt;/section>
+ &lt;/a>
+ &lt;a href="http://ad.example.com/?adid=375&amp;amp;pubid=1422">
+  &lt;section>
+   &lt;h1>The Mellblom Browser&lt;/h1>
+   &lt;p>Web browsing at the speed of light.&lt;/p>
+   &lt;p>No other browser goes faster!&lt;/p>
+  &lt;/section>
+ &lt;/a>
+&lt;/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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:58 GMT