Bug 74911
Summary: | Validity is not updated when a checked radio button is detached from the group | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | yosin |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Kent Tamura
<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
(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
As per the standard, element visibility should not affect the radio button validity.
Alexey Proskuryakov
Per the above comment, this is not a valid bug/request that we decline to fix, changing resolution to INVALID.