Bug 74642
Summary: | Adding a checked radio to a DocumentFragment affects radio buttons in document | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jordan Harband <ljharb> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, tkent |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://jsfiddle.net/xvFYK/8/ |
Jordan Harband
I have a test case here: http://jsfiddle.net/xvFYK/8/
The test works in Firefox, Opera, and IE, but fails in Safari/Chrome.
Basically, it seems adding anything to an element that's not in the document tree should never affect the document tree, but when a checked radio button is added to such an element (ie a DocumentFragment or a div), a checked radio button in the document tree with the same name attribute will become unchecked.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
By extension, dynamically removing radios from document should remove them from their radio groups.
Kent Tamura
Let me merge this into Bug 45719 because of the common root cause.
*** This bug has been marked as a duplicate of bug 45719 ***