Bug 74642 - Adding a checked radio to a DocumentFragment affects radio buttons in document
Summary: Adding a checked radio to a DocumentFragment affects radio buttons in document
Status: RESOLVED DUPLICATE of bug 45719
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/xvFYK/8/
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 12:51 PST by Jordan Harband
Modified: 2011-12-21 23:55 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Harband 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.
Comment 1 Alexey Proskuryakov 2011-12-15 17:01:08 PST
By extension, dynamically removing radios from document should remove them from their radio groups.
Comment 2 Kent Tamura 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 ***