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
The test case does not contain a checkbox and asserts the popover is toggled. Even with checkbox, all browsers toggle the popover and the checkbox.
In Blink, a recent change issue 41496122 ensured that clicking a label always dispatches a DOMActivate, which might trigger additional activation behavior. In Gecko, event flags are used to control whether other elements in the event chain should default handle the event.
Though this is not the specified behavior. During event dispatch, there is only one activation target, which should be label. Therefore, label should perform activation behavior by dispatching a click to its labeled content. The button should not perform activation behavior, i.e. not toggle the popover.
Activating both the label and button seems odd to me. Bug 1903257 describes similar odd cases, e.g. when nesting label with submit or reset buttons within forms. I'm wondering if there are reasons for having this behavior or whether the test and browsers should move towards only activating one of both.
This issue is blocking me on #10032. Implementations and the spec diverged on activation behavior, I prototyped with bringing Gecko and the spec closer to the implementations of Blink and WebKit by walking the event chain till an element default handles the event.
The text was updated successfully, but these errors were encountered:
What is the issue with the HTML Standard?
In wpt, there is the test label-in-invoker and currently, all browsers pass it.
Here is a similar example
The test case does not contain a checkbox and asserts the popover is toggled. Even with checkbox, all browsers toggle the popover and the checkbox.
In Blink, a recent change issue 41496122 ensured that clicking a label always dispatches a DOMActivate, which might trigger additional activation behavior. In Gecko, event flags are used to control whether other elements in the event chain should default handle the event.
Though this is not the specified behavior. During event dispatch, there is only one activation target, which should be label. Therefore, label should perform activation behavior by dispatching a click to its labeled content. The button should not perform activation behavior, i.e. not toggle the popover.
Activating both the label and button seems odd to me. Bug 1903257 describes similar odd cases, e.g. when nesting label with submit or reset buttons within forms. I'm wondering if there are reasons for having this behavior or whether the test and browsers should move towards only activating one of both.
This issue is blocking me on #10032. Implementations and the spec diverged on activation behavior, I prototyped with bringing Gecko and the spec closer to the implementations of Blink and WebKit by walking the event chain till an element default handles the event.
The text was updated successfully, but these errors were encountered: