Primary eng emails
Summary
Make Event.cancelBubble=false a no-op.
Motivation
According to https://github.com/whatwg/dom/issues/211, setting cancelBubble to true is considered as an alias to stopPropagation(), and https://dom.spec.whatwg.org/#dom-event-cancelbubble indicates setting cancelBubble to false should do nothing.
Compatibility And Interoperability Risk
No. UseCounter is indicating very low usage.
Firefox[0] and Safari[1] have already changed the behavior to meet the spec, bug was filed on Edge's side[2].
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1324380
[1] https://bugs.webkit.org/show_bug.cgi?id=166018
[2] https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10266390/
Alternative implementation suggestion for web developers
None.
Usage information from UseCounter
https://www.chromestatus.com/metrics/feature/timeline/popularity/1348 indicates it's rare that cancelBubble actually changes which callbacks are invoked.
https://www.chromestatus.com/metrics/feature/timeline/popularity/1349 indicates it's likely common to change cancelBubble from false to true.
https://www.chromestatus.com/metrics/feature/timeline/popularity/1350 indicates it's super rare to change cancelBubble to false.
So, it's safe to make Event.cancelBubble=true an alias to stopPropagation() and Event.cancelBubble=false a no-op.
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=675549
Entry on the feature dashboard
We don't have an entry on the feature dashboard.
Requesting approval to remove too?
Yes.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.