<?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>16394</bug_id>
          
          <creation_ts>2012-03-15 23:52:11 +0000</creation_ts>
          <short_desc>Form-associated elements with non-ancestor form owners should be reset when owner is removed from the tree</short_desc>
          <delta_ts>2012-10-02 23:20:59 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></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="Adam Klein">adamk</reporter>
          <assigned_to name="Edward O&apos;Connor">eoconnor</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>tkent</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>65641</commentid>
    <comment_count>0</comment_count>
      <attachid>1102</attachid>
    <who name="Adam Klein">adamk</who>
    <bug_when>2012-03-15 23:52:11 +0000</bug_when>
    <thetext>Created attachment 1102
Test case

In http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#attr-fae-form, I think a new line ought to be added to the rules governing when the form owner must be reset. Something on the order of:

&quot;When a tree containing a form-associated element and its form owner changes such that they are no longer in the same tree, reset the form owner of that element&quot;

This is to handle the case where the parser has caused a form control to be owned by a form which is not an ancestor. When that non-ancestor form is removed from the document, the form owner ought to be reset. It&apos;s not currently in WebKit (though after a GC it _is_ reset), but is in Firefox and Opera.

Test case attached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70133</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 06:58:12 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17831 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75148</commentid>
    <comment_count>2</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-10-02 23:20:59 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, 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

Status: Rejected
Change Description: No spec change.
Rationale: As described in &lt;https://www.w3.org/Bugs/Public/show_bug.cgi?id=17831#c1&gt;, the spec already does this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1102</attachid>
            <date>2012-03-15 23:52:11 +0000</date>
            <delta_ts>2012-03-15 23:52:11 +0000</delta_ts>
            <desc>Test case</desc>
            <filename>form.html</filename>
            <type>text/html</type>
            <size>235</size>
            <attacher name="Adam Klein">adamk</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cjx0YWJsZT4KICA8Zm9ybT4KICAgIDx0ZD48aW5wdXQ+PC90ZD4KICA8
L2Zvcm0+CjwvdGFibGU+CjxzY3JpcHQ+CmRvY3VtZW50LmZvcm1zWzBdLnBhcmVudE5vZGUucmVt
b3ZlQ2hpbGQoZG9jdW1lbnQuZm9ybXNbMF0pOwpkb2N1bWVudC5ib2R5LmlubmVySFRNTCA9IGRv
Y3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ2lucHV0JykuZm9ybSA/ICdGQUlMJyA6ICdQQVNTJzsKPC9z
Y3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>