<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6543</bug_id>
          
          <creation_ts>2009-02-09 07:17:29 +0000</creation_ts>
          <short_desc>Mint a new element for figure captions</short_desc>
          <delta_ts>2010-10-04 14:49:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NoReply</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>CR</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>olivier.gendrin</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rob</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23583</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-02-09 07:17:29 +0000</bug_when>
    <thetext>Currently, HTML 5 specifies that the caption for &lt;figure&gt; is represented by the &lt;legend&gt; element. Unfortunately, the &lt;legend&gt; element implies a &lt;fieldset&gt; in the HTML parser in already shipped and installed instances of Gecko. If &lt;legend&gt; is used, this is a rather notable barrier for author adoption of &lt;figure&gt; even if the generation of implied fieldset were removed in a future release.

Furthermore, the &lt;legend&gt; element comes with form-related DOM baggage: the HTMLLegendElement interface from DOM Level 2 HTML.

Since &lt;caption&gt; is also legacy-encumbered, I suggest minting a new element to remove the adoption barriers for &lt;figure&gt; and its caption.

Since the English thesaurus has been exhausted, I suggest minting a new element name that has some qualifying prefix for the word &quot;caption&quot;: e.g. &lt;figcaption&gt;. (I&apos;m assuming here that &lt;rubric&gt; wouldn&apos;t be appropriate.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23584</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-02-09 07:33:17 +0000</bug_when>
    <thetext>IMHO the long-term author confusion from having yet another element (or likely two, since &lt;figcaption&gt; wouldn&apos;t work for &lt;details&gt;) for this kind of semantic far outweighs the short-term migration problem. In practice, &lt;legend&gt; will soon not be any more of a problem than &lt;section&gt;.

(The DOM baggage is pretty minimal on HTMLLegendElement; I don&apos;t really see that as a problem. It doesn&apos;t have any special behaviour like, say, &lt;label&gt;.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23585</commentid>
    <comment_count>2</comment_count>
    <who name="Rob Burns">rob</who>
    <bug_when>2009-02-09 08:10:55 +0000</bug_when>
    <thetext>Since it seems &quot;caption&quot; is really the word we&apos;re looking for, but legacy parsing wants caption to be properly placed in a table, why not simply make a legacy synonym element to the figure element as has been suggested in the past[1].

With this approach, the parsing algorithm could be updated to permit &apos;caption&apos; elements in &quot;figure&quot; elements in addition to the &quot;table&quot; element. In the meantime, authors can use:

&lt;table f &gt;
     &lt;caption&gt;some caption text&lt;/caption&gt;
     &lt;tr&gt;&lt;td&gt;&lt;img src=&apos;uri&apos; alt=&apos;alt text&apos; &gt;
&lt;/table&gt;

in the same way they will eventually use 

&lt;figure&gt;
     &lt;caption&gt;some caption text&lt;/caption&gt;
    &lt;img src=&apos;uri&apos; alt=&apos;alt text&apos; &gt;
&lt;/figure&gt;

in all XML parsed HTML and HTML5 parsed text/html in the future. Note the use of the &quot;f&quot; boolean minimized attribute to indicate this is a figure element and almost the same character count in the legacy compatible approach as the figure example.

With this approach authors get immediate CSS support for figures that I expect behaves much the way we would want the figure caption to behave.

figure, table[f] {caption-side: bottom; }

 or

figure, table[f] {caption-side: top; }

Sure it&apos;s a little contrived in the interim, but there&apos;s a lot in HTML5 that&apos;s a little contrived. And it works today!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23586</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Burns">rob</who>
    <bug_when>2009-02-09 08:17:54 +0000</bug_when>
    <thetext>(In reply to comment #1)
I&apos;ll not here also that this suggestion in comment #2 doesn&apos;t need to prevent the use of &apos;legend&apos; for &apos;details&apos; elements. Either way we have &apos;legend&apos; and we have &apos;caption&apos;. Its only a matter of where precisely each one gets used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25292</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-05-26 02:22:08 +0000</bug_when>
    <thetext>I propose to wait and see how this plays out, since it&apos;s not a particularly critical feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27216</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-16 08:04:13 +0000</bug_when>
    <thetext>ended up using leif&apos;s suggestion from http://lists.w3.org/Archives/Public/public-html/2009Feb/0207</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33052</commentid>
    <comment_count>6</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-14 13:16:49 +0000</bug_when>
    <thetext>This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>