Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Require non-cancelable events with "should" or "must" when there are only passive listeners #130

Closed
zcorpan opened this issue Jun 28, 2022 · 1 comment · Fixed by #131
Closed

Comments

@zcorpan
Copy link
Member

zcorpan commented Jun 28, 2022

The spec allows non-cancellable events in https://w3c.github.io/touch-events/#cancelability

In particular, a user agent may generate only uncancelable touch events when it observes that there are no non-passive listeners for the event.

Why is this is only a "may", and not a "must" or at least "should"?

(This came up in web-platform-tests/wpt#34464 (comment) )

@patrickhlauke
Copy link
Member

patrickhlauke commented Jun 29, 2022

i believe some of the cautious language (should and may, rather than must) was a result of the history of this spec (and the fact that further development is only a CG draft report), which more or less retrospectively documented behavior done by Webkit (coupled with the fact that there was initially a bit of a PAG saber-rattling over the original 1.0 spec itself).

happy to go over the spec and make it more forceful where necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants