web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.94k stars 3.08k forks source link

"The canceled activation steps consist of setting the element's checkedness to false." needs to also revert the checkedness state of other radio buttons that were affected. #994

Open sideshowbarker opened 10 years ago

sideshowbarker commented 10 years ago

This affects html/semantics/forms/the-input-element/radio.html

See the following https://critic.hoppipolla.co.uk/showcomment?chain=3845 https://www.w3.org/Bugs/Public/show_bug.cgi?id=25254

jgraham commented 9 years ago

Did this get fixed with the spec change?

cvrebert commented 8 years ago

FWICT, the reversion is accomplished implicitly, for when the previously-checked checkbox gets rechecked by virtue of the cancellation, the logic in https://html.spec.whatwg.org/multipage/forms.html#radio-button-state-(type=radio):concept-fe-checked-3 comes into play:

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).

[...]

cvrebert commented 7 years ago

@sideshowbarker Do you agree?

sideshowbarker commented 7 years ago

FWICT, the reversion is accomplished implicitly, for when the previously-checked checkbox gets rechecked by virtue of the cancellation, the logic in https://html.spec.whatwg.org/multipage/forms.html#radio-button-state-(type=radio):concept-fe-checked-3 comes into play:…

yeah, agree