[html5] r2482 - [ac] (0) <img> in a section has to be the only paragraph in that section.

whatwg at whatwg.org whatwg at whatwg.org
Sat Nov 29 16:12:12 PST 2008


Author: ianh
Date: 2008-11-29 16:12:11 -0800 (Sat, 29 Nov 2008)
New Revision: 2482

Modified:
   index
   source
Log:
[ac] (0) <img> in a section has to be the only paragraph in that section.

Modified: index
===================================================================
--- index	2008-11-29 23:20:47 UTC (rev 2481)
+++ index	2008-11-30 00:12:11 UTC (rev 2482)
@@ -17,7 +17,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 29 November 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 30 November 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -15155,11 +15155,11 @@
      element that contains a <code><a href=#the-legend-element>legend</a></code> element that contains
      content other than <a href=#inter-element-whitespace>inter-element whitespace</a>.</li>
 
-     <li>The <code><a href=#the-img-element>img</a></code> element is the only <code><a href=#the-img-element>img</a></code>
-     element without an <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code>
-     attribute in its <a href=#concept-section title=concept-section>section</a>,
-     and its <a href=#concept-section title=concept-section>section</a> has an
-     associated heading.</li>
+     <li>The <code><a href=#the-img-element>img</a></code> element is part of the only
+     <a href=#paragraph>paragraph</a> directly in its <a href=#concept-section title=concept-section>section</a>, and is the only
+     <code><a href=#the-img-element>img</a></code> element without an <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute in its section, and its
+     <a href=#concept-section title=concept-section>section</a> has an associated
+     heading.</li>
 
     </ul><p class=note>Such cases are to be kept to an absolute
     minimum. If there is even the slightest possibility of the author
@@ -15179,8 +15179,10 @@
 
      <p>It could also be marked up like this:</p>
 
-     <pre><h1>Bubbles traveled everywhere with us.</h1>
- <strong><img src="1100670787_6a7c664aef.jpg"></strong></pre>
+     <pre><article>
+ <h1>Bubbles traveled everywhere with us.</h1>
+ <strong><img src="1100670787_6a7c664aef.jpg"></strong>
+</article></pre>
 
      <p>In either case, though, it would be better if a detailed
      description of the important parts of the image obtained from the

Modified: source
===================================================================
--- source	2008-11-29 23:20:47 UTC (rev 2481)
+++ source	2008-11-30 00:12:11 UTC (rev 2482)
@@ -16178,11 +16178,13 @@
      element that contains a <code>legend</code> element that contains
      content other than <span>inter-element whitespace</span>.</li>
 
-     <li>The <code>img</code> element is the only <code>img</code>
-     element without an <code title="attr-img-alt">alt</code>
-     attribute in its <span title="concept-section">section</span>,
-     and its <span title="concept-section">section</span> has an
-     associated heading.</li>
+     <li>The <code>img</code> element is part of the only
+     <span>paragraph</span> directly in its <span
+     title="concept-section">section</span>, and is the only
+     <code>img</code> element without an <code
+     title="attr-img-alt">alt</code> attribute in its section, and its
+     <span title="concept-section">section</span> has an associated
+     heading.</li>
 
     </ul>
 
@@ -16204,8 +16206,10 @@
 
      <p>It could also be marked up like this:</p>
 
-     <pre><h1>Bubbles traveled everywhere with us.</h1>
- <strong><img src="1100670787_6a7c664aef.jpg"></strong></pre>
+     <pre><article>
+ <h1>Bubbles traveled everywhere with us.</h1>
+ <strong><img src="1100670787_6a7c664aef.jpg"></strong>
+</article></pre>
 
      <p>In either case, though, it would be better if a detailed
      description of the important parts of the image obtained from the




More information about the Commit-Watchers mailing list