-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOM integration] No state is reset on node removal #526
Comments
As per this text, the document becomes the capture target so |
hasPointerCapture() would return false, because of https://w3c.github.io/pointerevents/#dom-element-haspointercapture |
OK, I think I found it. The text here: https://w3c.github.io/pointerevents/#ref-for-dfn-pending-pointer-capture-target-override-8 mentions that the pending pointer capture target override should be cleared when it is no longer connected to the DOM, which would make |
Nothing in the specification seems to explicitly reset pointer event state for an element, that would make
hasPointerCapture()
return false after an element is removed from the DOM, I think. I would expect this specification to hook into DOM's removing steps to reset some state when an element that has pointer capture is removed.We came across this in the process of working on whatwg/dom#1307, and have this test: https://github.com/web-platform-tests/wpt/blob/master/dom/nodes/moveBefore/tentative/pointer-events.html
The text was updated successfully, but these errors were encountered: