You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When any of the following phenomena occur, if the element's checkedness state is true after the occurrence, the checkedness state of all the other elements in the same radio button group must be set to false:
The element's checkedness state is set to true (for whatever reason).
The element's name attribute is set, changed, or removed.
However, all browsers also update the checkedness state of elements in the same radio button group when the element becomes connected. Note that Chrome/Safari don't update the checkedness state of elements in the same radio button group when the element is appended to a disconnected subtree and the form owner remains unchanged, e.g. https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=13369. Some pages rely on this behavior, see the report in https://bugzilla.mozilla.org/show_bug.cgi?id=1938489, so we are going to behave the same in Gecko for compatibility. I suggest we also make it clear in the spec by perhaps adding
What is the issue with the HTML Standard?
https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio) lists the cases where the checkedness state of elements in the same radio button group should update,
However, all browsers also update the checkedness state of elements in the same radio button group when the element becomes connected. Note that Chrome/Safari don't update the checkedness state of elements in the same radio button group when the element is appended to a disconnected subtree and the form owner remains unchanged, e.g. https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=13369. Some pages rely on this behavior, see the report in https://bugzilla.mozilla.org/show_bug.cgi?id=1938489, so we are going to behave the same in Gecko for compatibility. I suggest we also make it clear in the spec by perhaps adding
into https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio)?
The text was updated successfully, but these errors were encountered: