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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>18691</bug_id>
          
          <creation_ts>2008-04-22 22:45:56 -0700</creation_ts>
          <short_desc>&lt;legend&gt; element is dropped on the floor</short_desc>
          <delta_ts>2011-05-24 21:17:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E...%3Clegend%3E...%3C%2Flegend%3E</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>anantha</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>hyatt</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>mitz</cc>
    
    <cc>phiw2</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78620</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-04-22 22:45:56 -0700</bug_when>
    <thetext>STEPS TO REPRODUCE:
 1. parse data:text/html,&lt;legend&gt;test&lt;/legend&gt;
 2. examine the DOM

EXPECTED RESULTS
 &lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;legend&gt;test&lt;/legend&gt;&lt;/body&gt;&lt;/html&gt;

ACTUAL RESULTS
 There&apos;s no &lt;legend&gt; there!

Could we make the &lt;legend&gt; element parse like any unknown element, instead of dropping it on the floor if it is found outside a &lt;fieldset&gt;?

See also:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E...%3Clegend%3E...%3C%2Flegend%3E

If we can resolved this relatively soon (like a Safari 3 point release) that would be cool. If we can&apos;t get browsers to fix this, then we&apos;re going to have to introduce a new element for &lt;figure&gt;&apos;s caption, which would be a pain.

As far as I know, other browsers don&apos;t have this behaviour with &lt;legend&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86021</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-07-16 02:34:55 -0700</bug_when>
    <thetext>*** Bug 19634 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86028</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-07-16 03:26:52 -0700</bug_when>
    <thetext>I think it&apos;s worth to notice that Firefox incorrectly creates fieldset in this case. The issue is tracked by bug https://bugzilla.mozilla.org/show_bug.cgi?id=430416</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408168</commentid>
    <comment_count>3</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-05-23 12:47:36 -0700</bug_when>
    <thetext>I tried to reproduce this bug but we now properly generate &lt;legend&gt; tags. My guess is that the HTML5 tokenizing / parsing refactoring solved it.

Our HTML5lib tests don&apos;t seem to cover this so taking the bug to land the now passing test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408544</commentid>
    <comment_count>4</comment_count>
      <attachid>94534</attachid>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-05-23 18:26:08 -0700</bug_when>
    <thetext>Created attachment 94534
Proposed &quot;fix&quot;: Land the test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409408</commentid>
    <comment_count>5</comment_count>
      <attachid>94534</attachid>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-05-24 20:38:14 -0700</bug_when>
    <thetext>Comment on attachment 94534
Proposed &quot;fix&quot;: Land the test case

Looks fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409434</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-24 21:16:00 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 94534:

http/tests/websocket/tests/handshake-error.html bug 53851 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409436</commentid>
    <comment_count>7</comment_count>
      <attachid>94534</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-24 21:17:13 -0700</bug_when>
    <thetext>Comment on attachment 94534
Proposed &quot;fix&quot;: Land the test case

Clearing flags on attachment: 94534

Committed r87265: &lt;http://trac.webkit.org/changeset/87265&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409437</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-24 21:17:18 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94534</attachid>
            <date>2011-05-23 18:26:08 -0700</date>
            <delta_ts>2011-05-24 21:17:13 -0700</delta_ts>
            <desc>Proposed &quot;fix&quot;: Land the test case</desc>
            <filename>bug18691-legend-parsing-test.diff</filename>
            <type>text/plain</type>
            <size>989</size>
            <attacher name="Julien Chaffraix">jchaffraix</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCB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