NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 611 - Tentatively allow flow content inside <table><caption> and <figure><legend>. (bug 7056)
Tentatively allow flow content inside <table><caption> and <figure><legend>. ...
Status: RESOLVED DUPLICATE of bug 588
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-14 15:02 CEST by Henri Sivonen
Modified: 2009-07-15 08:08 CEST (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-07-14 15:02:59 CEST
Index: source
===================================================================
--- source	(revision 3328)
+++ source	(revision 3329)
@@ -28608,7 +28608,7 @@
    <dt>Contexts in which this element may be used:</dt>
    <dd>As the first element child of a <code>table</code> element.</dd>
    <dt>Content model:</dt>
-   <dd><span>Phrasing content</span>.</dd>
+   <dd><span>Flow content</span>, but with no descendant <code>table</code> elements.</dd>
    <dt>Content attributes:</dt>
    <dd><span>Global attributes</span></dd>
    <dt>DOM interface:</dt>
@@ -28659,22 +28659,22 @@
    and explaining its use, it makes more sense:</p>
 
    <pre>&lt;caption>
-&lt;strong>Table 1.&lt;/strong>
-This table shows the total score obtained from rolling two six-sided
-dice. The first row represents the value of the first die, the first
-column the value of the second die. The total is given in the cell
-that corresponds to the values of the two dice.
+&lt;p>Table 1.
+&lt;p>This table shows the total score obtained from rolling two
+six-sided dice. The first row represents the value of the first die,
+the first column the value of the second die. The total is given in
+the cell that corresponds to the values of the two dice.
 &lt;/caption></pre>
 
    <p>This provides the user with more context:</p>
 
    <table class="dice-example">
     <caption>
-     <strong>Table 1.</strong>
-     This table shows the total score obtained from rolling two six-sided
-     dice. The first row represents the value of the first die, the first
-     column the value of the second die. The total is given in the cell
-     that corresponds to the values of the two dice.
+     <p>Table 1.
+     <p>This table shows the total score obtained from rolling two
+     six-sided dice. The first row represents the value of the first
+     die, the first column the value of the second die. The total is
+     given in the cell that corresponds to the values of the two dice.
     </caption>
     <tr> <th>   <th> 1 <th> 2 <th> 3 <th> 4 <th> 5 <th> 6
     <tr> <th> 1 <td> 2 <td> 3 <td> 4 <td> 5 <td> 6 <td> 7
@@ -44706,9 +44706,10 @@
    <dt>Contexts in which this element may be used:</dt>
    <dd>As the first child of a <code>fieldset</code> element.</dd>
    <dd>As the first child of a <code>details</code> element.</dd>
-   <dd>As a child of a <code>figure</code> element, if there are no other <code>legend</code> element children of that element.</dd>
+   <dd>As the first or last child of a <code>figure</code> element, if there are no other <code>legend</code> element children of that element.</dd>
    <dt>Content model:</dt>
-   <dd><span>Phrasing content</span>.</dd>
+   <dd>When the parent node is a <code>figure</code> element: <span>flow content</span>, but with no descendant <code>figure</code> elements.</dd>
+   <dd>Otherwise: <span>phrasing content</span>.</dd>
    <dt>Content attributes:</dt>
    <dd><span>Global attributes</span></dd>
    <dt>DOM interface:</dt>
@@ -84377,6 +84378,7 @@
   Old&#345;ich Vete&#353;n&#237;k,
   Oliver Hunt,
   Oliver Rigby,
+  Olivier Gendrin,
   Olli Pettay,
   Patrick H. Lauke,
   Paul Norman,
Comment 1 Michael[tm] Smith 2009-07-15 08:08:16 CEST
closing this as a duplicate of bug 588 but of course feel free to reopen this if you think it needs to be. I am planning on checking in a change for bug 588 but have not written it up yet

*** This bug has been marked as a duplicate of bug 588 ***