Bug 74642

Summary: Adding a checked radio to a DocumentFragment affects radio buttons in document
Product: WebKit Reporter: Jordan Harband <ljharb>
Component: FormsAssignee: 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
Reported 2011-12-15 12:51:30 PST
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
Alexey Proskuryakov
Comment 1 2011-12-15 17:01:08 PST
By extension, dynamically removing radios from document should remove them from their radio groups.
Kent Tamura
Comment 2 2011-12-21 23:55:38 PST
Let me merge this into Bug 45719 because of the common root cause. *** This bug has been marked as a duplicate of bug 45719 ***
Note You need to log in before you can comment on or make changes to this bug.