This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10216 - When inserting a <form> element in table we need to set the form element pointer to point to the element created.
Summary: When inserting a <form> element in table we need to set the form element poin...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P1 critical
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 08:18 UTC by contributor
Modified: 2010-10-04 14:32 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2010-07-21 08:18:10 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-intable

Comment:
When inserting a <form> element in table we need to set the form element
pointer to point to the element created.

Posted from: 98.210.108.185
Comment 1 Adam Barth 2010-07-21 08:19:04 UTC
Here's a test case:

<table>
<form onsubmit="document.write('Form did submit'); return false">
<input type=submit>
<script>
document.getElementsByTagName('input')[0].click();
</script>
Comment 2 Adam Barth 2010-07-21 08:37:41 UTC
The Firefox nightly seems to set the form pointer here too.
Comment 3 Ian 'Hixie' Hickson 2010-08-16 18:19:05 UTC
EDITOR'S RESPONSE: This is an Editor'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: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.

It would be useful if you could add some tests to the relevant test suites that check that this works even in cases like:

  1: <table> <form> </table> <input>
  2: <form> <table> <form> <input> </table> <input>
  3: <form> <table> <input> </form> <form> <input> </table> <input>

Which forms do the inputs get associated with? Is that compatible with legacy?
Comment 4 contributor 2010-08-16 18:20:07 UTC
Checked in as WHATWG revision r5291.
Check-in comment: <table><form> also sets form pointer.
http://html5.org/tools/web-apps-tracker?from=5290&to=5291