Skip to content

Expand prose about preventing compatibility mouse events and make it normative#403

Merged
patrickhlauke merged 5 commits into
gh-pagesfrom
patrickhlauke-mousecompat-prevent-passive
Aug 18, 2021
Merged

Expand prose about preventing compatibility mouse events and make it normative#403
patrickhlauke merged 5 commits into
gh-pagesfrom
patrickhlauke-mousecompat-prevent-passive

Conversation

@patrickhlauke

@patrickhlauke patrickhlauke commented Aug 3, 2021

Copy link
Copy Markdown
Member

Closes #369


Preview | Diff

* split the awkward "Also," into a separate paragraph (still inside the note)
* add an additional paragraph in the note about passive event listeners (which ignore `preventDefault` / where the default action can't be prevented) - see #360 (comment)

Closes #369
@patrickhlauke patrickhlauke requested review from flackr, mustaqahmed and smaug---- and removed request for flackr and smaug---- August 3, 2021 22:48

@smaug---- smaug---- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling preventDefault() from a passive event listener is defined already in the DOM spec so I think it is just a bit confusing to explain it here too
https://dom.spec.whatwg.org/#set-the-canceled-flag

@patrickhlauke

Copy link
Copy Markdown
Member Author

Still wondering if there's a value in mentioning it - it caught me by surprise when it was mentioned, but then again I'm not hip with the DOM spec. Maybe rewording it slightly but keeping it as a nod/reminder? To make clear that compat events (when generated) are part of the default action, and that of course that default action won't be preventable in those situations? But yeah, not precious about this...if it's clear enough/obvious for others, happy to remove that para (but keep the slight tweak in structure for the note)

@smaug----

Copy link
Copy Markdown
Contributor

Perhaps some note could work here?

to make clear these are DOM concepts.
@patrickhlauke

Copy link
Copy Markdown
Member Author

As discussed in today's call https://www.w3.org/2021/08/04-pointerevents-minutes.html added an explicit [[DOM]] reference there to make it clearer that the concepts are defined in DOM

@patrickhlauke

Copy link
Copy Markdown
Member Author

However, with our newfound interest in normative/non-normative ... wondering if that second note for https://pr-preview.s3.amazonaws.com/w3c/pointerevents/pull/403.html#compatibility-mapping-with-mouse-events should actually just be normal normative prose rather than a non-normative note. Thoughts?

@patrickhlauke patrickhlauke changed the title Expand note about preventing compatibility mouse events Aug 8, 2021
@patrickhlauke patrickhlauke force-pushed the patrickhlauke-mousecompat-prevent-passive branch from aab1af2 to 07bfbf9 Compare August 8, 2021 09:36
@patrickhlauke patrickhlauke merged commit 6ac51de into gh-pages Aug 18, 2021
@patrickhlauke patrickhlauke deleted the patrickhlauke-mousecompat-prevent-passive branch August 18, 2021 15:07
@mustaqahmed

Copy link
Copy Markdown
Member

We have pointerevent_mouse-pointer-preventdefault.html to cover almost all of this PR. However, we still need a WPT for compat events for passive PointerEvent listeners.

@mustaqahmed mustaqahmed added needs-wpt Investigation whether the issue needs a wpt test has been done and wpt is missing and removed wpt labels Dec 20, 2022
@smaug---- smaug---- removed the needs-wpt Investigation whether the issue needs a wpt test has been done and wpt is missing label Feb 28, 2023
@smaug---- smaug---- added the needs-wpt Investigation whether the issue needs a wpt test has been done and wpt is missing label Feb 28, 2023
@mustaqahmed

Copy link
Copy Markdown
Member

While working on a test on passive event listeners, I realized that this behavior is not normative! It seems to me that the "note" we added here could be normative...thoughts?

@mustaqahmed

Copy link
Copy Markdown
Member

While working on a test on passive event listeners, I realized that this behavior is not normative! It seems to me that the "note" we added here could be normative...thoughts?

In today's PEWG meeting we agreed to make this normative.

@patrickhlauke

Copy link
Copy Markdown
Member Author

In today's PEWG meeting we agreed to make this normative.

done #465

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 8, 2023
This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 8, 2023
This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 8, 2023
This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 8, 2023
This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}
@mustaqahmed

Copy link
Copy Markdown
Member

The WPT landed through web-platform-tests/wpt#38895

@mustaqahmed mustaqahmed removed the needs-wpt Investigation whether the issue needs a wpt test has been done and wpt is missing label Mar 9, 2023
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 28, 2023
This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 30, 2023
…ve event listeners, a=testonly

Automatic update from web-platform-tests
WPT for canceling pointerevents in passive event listeners

This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}

--

wpt-commits: 1f25cb6b733848129b03ca6dadec7b03cf391636
wpt-pr: 38895
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Apr 8, 2023
This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…ve event listeners, a=testonly

Automatic update from web-platform-tests
WPT for canceling pointerevents in passive event listeners

This is a test for this spec change:
w3c/pointerevents#403

Change-Id: Ife4dbae48295e54a41a7ab3f8b21bdf655f5f01b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320888
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114825}

--

wpt-commits: 1f25cb6b733848129b03ca6dadec7b03cf391636
wpt-pr: 38895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants