W3C home > Mailing lists > Public > public-html-diffs@w3.org > September 2010

hixie: <figcaption> should only be used as a caption of a no-alt <img> if there's no other content in the <figure> (whatwg r5517)

From: poot <cvsmail@w3.org>
Date: Mon, 27 Sep 2010 05:01:09 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100926200109.C9C2833B48@toro.w3.mag.keio.ac.jp>
hixie: <figcaption> should only be used as a caption of a no-alt <img>
if there's no other content in the <figure> (whatwg r5517)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4406&r2=1.4407&f=h
http://html5.org/tools/web-apps-tracker?from=5516&to=5517

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4406
retrieving revision 1.4407
diff -u -d -r1.4406 -r1.4407
--- Overview.html	26 Sep 2010 18:26:09 -0000	1.4406
+++ Overview.html	26 Sep 2010 20:00:54 -0000	1.4407
@@ -8593,10 +8593,14 @@
   processing instruction nodes must be ignored when establishing
   whether an element's contents match the element's content model or
   not, and must be ignored when following algorithms that define
-  document and element semantics.<p>An element <var title="">A</var> is said to be <dfn id="preceded-or-followed">preceded or
-  followed</dfn> by a second element <var title="">B</var> if <var title="">A</var> and <var title="">B</var> have the same parent node
-  and there are no other element nodes or text nodes (other than
-  <a href="#inter-element-whitespace">inter-element whitespace</a>) between them.<p>Authors must not use <a href="#html-elements">HTML elements</a> anywhere except
+  document and element semantics.<p class="note">Thus, an element <var title="">A</var> is said to be
+  <i>preceded or followed</i> by a second element <var title="">B</var> if <var title="">A</var> and <var title="">B</var>
+  have the same parent node and there are no other element nodes or
+  text nodes (other than <a href="#inter-element-whitespace">inter-element whitespace</a>)
+  between them. Similarly, a node is the <i>only child</i> of an
+  element if that element contains no other nodes other than
+  <a href="#inter-element-whitespace">inter-element whitespace</a>, comment nodes, and processing
+  instruction nodes.<p>Authors must not use <a href="#html-elements">HTML elements</a> anywhere except
   where they are explicitly allowed, as defined for each element, or
   as explicitly required by other specifications. For XML compound
   documents, these contexts could be inside elements from other
@@ -17734,10 +17738,15 @@
      that attribute is the caption information; abort these
      steps.</li>
 
-     <li><p>If the image is the child of a <code><a href="#the-figure-element">figure</a></code> element
-     that has a child <code><a href="#the-figcaption-element">figcaption</a></code> element, then the
-     contents of the first such <code><a href="#the-figcaption-element">figcaption</a></code> element are
-     the caption information; abort these steps.</li>
+     <li><p>If the image is a descendant of a <code><a href="#the-figure-element">figure</a></code>
+     element that has a child <code><a href="#the-figcaption-element">figcaption</a></code> element, and,
+     ignoring the <code><a href="#the-figcaption-element">figcaption</a></code> element and its descendants,
+     the <code><a href="#the-figure-element">figure</a></code> element has no text node descendants
+     other than <a href="#inter-element-whitespace">inter-element whitespace</a>, and no
+     <a href="#embedded-content">embedded content</a> descendant other than the
+     <code><a href="#the-img-element">img</a></code> element, then the contents of the first such
+     <code><a href="#the-figcaption-element">figcaption</a></code> element are the caption information;
+     abort these steps.</li>
 
     </ol></dd>
 
@@ -18515,10 +18524,15 @@
      of 'critical-no-alt' --><li>The <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute is
      present and has a non-empty value.</li>
 
-     <li>The <code><a href="#the-img-element">img</a></code> element is in a <code><a href="#the-figure-element">figure</a></code>
-     element that contains a <code><a href="#the-figcaption-element">figcaption</a></code> element that
-     contains content other than <a href="#inter-element-whitespace">inter-element
-     whitespace</a>.</li>
+     <li id="figcaption-as-alt-condition">The <code><a href="#the-img-element">img</a></code> element
+     is in a <code><a href="#the-figure-element">figure</a></code> element that contains a
+     <code><a href="#the-figcaption-element">figcaption</a></code> element that contains content other than
+     <a href="#inter-element-whitespace">inter-element whitespace</a>, and, ignoring the
+     <code><a href="#the-figcaption-element">figcaption</a></code> element and its descendants, the
+     <code><a href="#the-figure-element">figure</a></code> element has no text node descendants other
+     than <a href="#inter-element-whitespace">inter-element whitespace</a>, and no <a href="#embedded-content">embedded
+     content</a> descendant other than the <code><a href="#the-img-element">img</a></code>
+     element.</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
@@ -18690,9 +18704,8 @@
    above</a>).</li>
 
    <li>The <code><a href="#the-img-element">img</a></code> element is in a <code><a href="#the-figure-element">figure</a></code>
-   element that contains a <code><a href="#the-figcaption-element">figcaption</a></code> element that
-   contains content other than <a href="#inter-element-whitespace">inter-element whitespace</a>
-   (as <a href="#unknown-images">described above</a>).</li>
+   element that satisfies <a href="#figcaption-as-alt-condition">the
+   conditions described above</a>.</li>
 
    <!-- the following are additional entries not included in the
    aforementioned list, as they apply only to conformance checkers -->
Received on Sunday, 26 September 2010 20:01:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:10 UTC