NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 399 - <img> in a section has to be the only paragraph in that section.
<img> in a section has to be the only paragraph in that section.
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-04 16:50 CET by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-01-04 16:50:05 CET
Index: source
===================================================================
--- source	(revision 2481)
+++ source	(revision 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>&lt;h1>Bubbles traveled everywhere with us.&lt;/h1>
- <strong>&lt;img src="1100670787_6a7c664aef.jpg"></strong></pre>
+     <pre>&lt;article>
+ &lt;h1>Bubbles traveled everywhere with us.&lt;/h1>
+ <strong>&lt;img src="1100670787_6a7c664aef.jpg"></strong>
+&lt;/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