WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
74911
Validity is not updated when a checked radio button is detached from the group
https://bugs.webkit.org/show_bug.cgi?id=74911
Summary
Validity is not updated when a checked radio button is detached from the group
Kent Tamura
Reported
2011-12-19 21:39:07 PST
<form> <input type=radio name=rg1 id=radio1 required> <input type=radio name=rg1 id=radio2 checked> </form> The element 'radio1' is valid ($('radio1').validity.valid == true). If the element 'radio2' is detached from the renderer tree or removed from the DOM tree, the validity of 'radio1' should be changed to false.
Attachments
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2011-12-19 21:45:54 PST
(In reply to
comment #0
)
> The element 'radio1' is valid ($('radio1').validity.valid == true). If the element 'radio2' is detached from the renderer tree or removed from the DOM tree, the validity of 'radio1' should be changed to false.
Oops, it seems that there is no problem in a case of "removed from the DOM tree". I saw the problem when $('radio2').style.display = 'none'.
Kent Tamura
Comment 2
2011-12-19 21:53:11 PST
As per the standard, element visibility should not affect the radio button validity.
Alexey Proskuryakov
Comment 3
2011-12-20 15:54:52 PST
Per the above comment, this is not a valid bug/request that we decline to fix, changing resolution to INVALID.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug