Short URL: http://html5.org/r/4682
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 4682 | 8726 | Move <figure> to the grouping section. | 2010-02-06 10:50 |
Index: source
===================================================================
--- source (revision 4681)
+++ source (revision 4682)
@@ -16596,8 +16596,163 @@
</div>
+ <h4>The <dfn><code>figure</code></dfn> element</h4>
+ <dl class="element">
+ <dt>Categories</dt>
+ <dd><span>Flow content</span>.</dd>
+ <dd><span>Sectioning root</span>.</dd>
+ <dt>Contexts in which this element may be used:</dt>
+ <dd>Where <span>flow content</span> is expected.</dd>
+ <dt>Content model:</dt>
+ <dd>Either: One <code>figcaption</code> element followed by <span>phrasing content</span>.</dd>
+ <dd>Or: <span>Phrasing content</span> followed by one <code>figcaption</code> element.</dd>
+ <dd>Or: <span>Phrasing content</span>.</dd>
+ <dt>Content attributes:</dt>
+ <dd><span>Global attributes</span></dd>
+ <dt>DOM interface:</dt>
+ <dd>Uses <code>HTMLElement</code>.</dd>
+ </dl>
+ <!-- v2: Add a <credit> element for photo credits -->
+
+ <p>The <code>figure</code> element <span>represents</span> some
+ <span>flow content</span>, optionally with a caption, that is
+ self-contained and is typically referenced as a single unit from the
+ main flow of the document.</p>
+
+ <p>The element can thus be used to annotate illustrations, diagrams,
+ photos, code listings, etc, that are referred to from the main
+ content of the document, but that could, without affecting the flow
+ of the document, be moved away from that primary content, e.g. to
+ the side of the page, to dedicated pages, or to an appendix.</p>
+
+ <p>The <span class="impl">first</span> <code>figcaption</code>
+ element child of the element, if any, represents the caption of the
+ <code>figure</code> element's contents. If there is no child
+ <code>figcaption</code> element, then there is no caption.</p>
+
+ <div class="example">
+
+ <p>This example shows the <code>figure</code> element to mark up a
+ code listing.</p>
+
+ <pre><p>In <a href="#l4">listing 4</a> we see the primary core interface
+API declaration.</p>
+<figure id="l4">
+ <figcaption>Listing 4. The primary core interface API declaration.</figcaption>
+ <pre><code>interface PrimaryCore {
+ boolean verifyDataLine();
+ void sendData(in sequence&lt;byte> data);
+ void initSelfDestruct();
+}</code></pre>
+</figure>
+<p>The API is designed to use UTF-8.</p></pre>
+
+ </div>
+
+ <div class="example">
+
+ <p>Here we see a <code>figure</code> element to mark up a
+ photo.</p>
+
+ <pre><figure>
+ <img src="bubbles-work.jpeg"
+ alt="Bubbles, sitting in his office chair, works on his
+ latest project intently.">
+ <figcaption>Bubbles at work</figcaption>
+</figure></pre>
+
+ </div>
+
+ <div class="example">
+
+ <p>In this example, we see an image that is <em>not</em>
+ a figure, as well as an image and a video that are.</p>
+
+ <pre><h2>Malinko's comics</h2>
+
+<p>This case centered on some sort of "intellectual property"
+infringement related to a comic (see Exhibit A). The suit started
+after a trailer ending with these words:
+
+<blockquote>
+ <img src="promblem-packed-action.png" alt="ROUGH COPY! Promblem-Packed Action!">
+</blockquote>
+
+<p>...was aired. A lawyer, armed with a Bigger Notebook, launched a
+preemptive strike using snowballs. A complete copy of the trailer is
+included with Exhibit B.
+
+<figure>
+ <img src="ex-a.png" alt="Two squiggles on a dirty piece of paper.">
+ <figcaption>Exhibit A. The alleged <cite>rough copy</cite> comic.</figcaption>
+</figure>
+
+<figure>
+ <video src="ex-b.mov"></video>
+ <figcaption>Exhibit B. The <cite>Rough Copy</cite> trailer.</figcaption>
+</figure>
+
+<p>The case was resolved out of court.</pre>
+
+ </div>
+
+ <div class="example">
+
+ <p>Here, a part of a poem is marked up using
+ <code>figure</code>.</p>
+
+ <pre><figure>
+ <p>'Twas brillig, and the slithy toves<br>
+ Did gyre and gimble in the wabe;<br>
+ All mimsy were the borogoves,<br>
+ And the mome raths outgrabe.</p>
+ <figcaption><cite>Jabberwocky</cite> (first verse). Lewis Carroll, 1832-98</figcaption>
+</figure></pre>
+
+ </div>
+
+ <div class="example">
+
+ <p>In this example, which could be part of a much larger work
+ discussing a castle, the figure has three images in it.</p>
+
+ <pre><figure>
+ <img src="castle1423.jpeg" title="Etching. Anonymous, ca. 1423."
+ alt="The castle has one tower, and a tall wall around it.">
+ <img src="castle1858.jpeg" title="Oil-based paint on canvas. Maria Towle, 1858."
+ alt="The castle now has two towers and two walls.">
+ <img src="castle1999.jpeg" title="Film photograph. Peter Jankle, 1999."
+ alt="The castle lies in ruins, the original tower all that remains in one piece.">
+ <figcaption>The castle through the ages: 1423, 1858, and 1999 respectively.</figcaption>
+</figure></pre>
+
+ </div>
+
+
+ <h4>The <dfn><code>figcaption</code></dfn> element</h4>
+
+ <dl class="element">
+ <dt>Categories</dt>
+ <dd>None.</dd>
+ <dt>Contexts in which this element may be used:</dt>
+ <dd>As the first or last child of a <code>figure</code> element.</dd>
+ <dt>Content model:</dt>
+ <dd><span>Phrasing content</span>.</dd>
+ <dt>Content attributes:</dt>
+ <dd><span>Global attributes</span></dd>
+ <dt>DOM interface:</dt>
+ <dd>Uses <code>HTMLElement</code>.</dd>
+ </dl>
+
+ <p>The <code>figcaption</code> element <span>represents</span> a
+ caption or legend for the rest of the contents of the
+ <code>figcaption</code> element's parent <code>figure</code>
+ element<span class="impl">, if any</span>.</p>
+
+
+
<h4>The <dfn><code>div</code></dfn> element</h4>
<dl class="element">
@@ -19165,162 +19320,7 @@
<h3>Embedded content</h3>
- <h4>The <dfn><code>figure</code></dfn> element</h4>
- <dl class="element">
- <dt>Categories</dt>
- <dd><span>Flow content</span>.</dd>
- <dd><span>Sectioning root</span>.</dd>
- <dt>Contexts in which this element may be used:</dt>
- <dd>Where <span>flow content</span> is expected.</dd>
- <dt>Content model:</dt>
- <dd>Either: One <code>figcaption</code> element followed by <span>phrasing content</span>.</dd>
- <dd>Or: <span>Phrasing content</span> followed by one <code>figcaption</code> element.</dd>
- <dd>Or: <span>Phrasing content</span>.</dd>
- <dt>Content attributes:</dt>
- <dd><span>Global attributes</span></dd>
- <dt>DOM interface:</dt>
- <dd>Uses <code>HTMLElement</code>.</dd>
- </dl>
-
- <!-- v2: Add a <credit> element for photo credits -->
-
- <p>The <code>figure</code> element <span>represents</span> some
- <span>flow content</span>, optionally with a caption, that is
- self-contained and is typically referenced as a single unit from the
- main flow of the document.</p>
-
- <p>The element can thus be used to annotate illustrations, diagrams,
- photos, code listings, etc, that are referred to from the main
- content of the document, but that could, without affecting the flow
- of the document, be moved away from that primary content, e.g. to
- the side of the page, to dedicated pages, or to an appendix.</p>
-
- <p>The <span class="impl">first</span> <code>figcaption</code>
- element child of the element, if any, represents the caption of the
- <code>figure</code> element's contents. If there is no child
- <code>figcaption</code> element, then there is no caption.</p>
-
- <div class="example">
-
- <p>This example shows the <code>figure</code> element to mark up a
- code listing.</p>
-
- <pre><p>In <a href="#l4">listing 4</a> we see the primary core interface
-API declaration.</p>
-<figure id="l4">
- <figcaption>Listing 4. The primary core interface API declaration.</figcaption>
- <pre><code>interface PrimaryCore {
- boolean verifyDataLine();
- void sendData(in sequence&lt;byte> data);
- void initSelfDestruct();
-}</code></pre>
-</figure>
-<p>The API is designed to use UTF-8.</p></pre>
-
- </div>
-
- <div class="example">
-
- <p>Here we see a <code>figure</code> element to mark up a
- photo.</p>
-
- <pre><figure>
- <img src="bubbles-work.jpeg"
- alt="Bubbles, sitting in his office chair, works on his
- latest project intently.">
- <figcaption>Bubbles at work</figcaption>
-</figure></pre>
-
- </div>
-
- <div class="example">
-
- <p>In this example, we see an image that is <em>not</em>
- a figure, as well as an image and a video that are.</p>
-
- <pre><h2>Malinko's comics</h2>
-
-<p>This case centered on some sort of "intellectual property"
-infringement related to a comic (see Exhibit A). The suit started
-after a trailer ending with these words:
-
-<blockquote>
- <img src="promblem-packed-action.png" alt="ROUGH COPY! Promblem-Packed Action!">
-</blockquote>
-
-<p>...was aired. A lawyer, armed with a Bigger Notebook, launched a
-preemptive strike using snowballs. A complete copy of the trailer is
-included with Exhibit B.
-
-<figure>
- <img src="ex-a.png" alt="Two squiggles on a dirty piece of paper.">
- <figcaption>Exhibit A. The alleged <cite>rough copy</cite> comic.</figcaption>
-</figure>
-
-<figure>
- <video src="ex-b.mov"></video>
- <figcaption>Exhibit B. The <cite>Rough Copy</cite> trailer.</figcaption>
-</figure>
-
-<p>The case was resolved out of court.</pre>
-
- </div>
-
- <div class="example">
-
- <p>Here, a part of a poem is marked up using
- <code>figure</code>.</p>
-
- <pre><figure>
- <p>'Twas brillig, and the slithy toves<br>
- Did gyre and gimble in the wabe;<br>
- All mimsy were the borogoves,<br>
- And the mome raths outgrabe.</p>
- <figcaption><cite>Jabberwocky</cite> (first verse). Lewis Carroll, 1832-98</figcaption>
-</figure></pre>
-
- </div>
-
- <div class="example">
-
- <p>In this example, which could be part of a much larger work
- discussing a castle, the figure has three images in it.</p>
-
- <pre><figure>
- <img src="castle1423.jpeg" title="Etching. Anonymous, ca. 1423."
- alt="The castle has one tower, and a tall wall around it.">
- <img src="castle1858.jpeg" title="Oil-based paint on canvas. Maria Towle, 1858."
- alt="The castle now has two towers and two walls.">
- <img src="castle1999.jpeg" title="Film photograph. Peter Jankle, 1999."
- alt="The castle lies in ruins, the original tower all that remains in one piece.">
- <figcaption>The castle through the ages: 1423, 1858, and 1999 respectively.</figcaption>
-</figure></pre>
-
- </div>
-
-
- <h4>The <dfn><code>figcaption</code></dfn> element</h4>
-
- <dl class="element">
- <dt>Categories</dt>
- <dd>None.</dd>
- <dt>Contexts in which this element may be used:</dt>
- <dd>As the first or last child of a <code>figure</code> element.</dd>
- <dt>Content model:</dt>
- <dd><span>Phrasing content</span>.</dd>
- <dt>Content attributes:</dt>
- <dd><span>Global attributes</span></dd>
- <dt>DOM interface:</dt>
- <dd>Uses <code>HTMLElement</code>.</dd>
- </dl>
-
- <p>The <code>figcaption</code> element <span>represents</span> a
- caption or legend for the rest of the contents of the
- <code>figcaption</code> element's parent <code>figure</code>
- element<span class="impl">, if any</span>.</p>
-
-
<h4>The <dfn><code>img</code></dfn> element</h4>
<dl class="element">