DescriptionImplement type=radio and radiogroup attribute for menuitem.
The radiogroup attribute gives the name of the group of commands that will be toggled when the command itself is toggled, for commands whose type attribute has the value "radio". The scope of the name is the child list of the parent element. The attribute must be omitted unless the type attribute is in the Radio state. When specified, the attribute's value must be a non-empty string.
If the type attribute is in the Radio state
If the element has a parent, then the UA must walk the list of child nodes of that parent element, and for each node that is a menuitem element, if that element has a radiogroup attribute whose value exactly matches the current element's (treating missing radiogroup attributes as if they were the empty string), and has a checked attribute, must remove that attribute.
Then, the element's checked attribute must be set to the literal value "checked".
Specification
https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-radiogroup
BUG=87553
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186848
Patch Set 1 #Patch Set 2 : Tests #
Total comments: 4
Patch Set 3 : Fixed review comments and added more tests #
Total comments: 8
Patch Set 4 : Changes as per specificatins #Patch Set 5 : Rebaselined #Messages
Total messages: 27 (10 generated)
|