[pointerevents] [DOM integration] No state is reset on node removal (#526)

domfarolino has just created a new issue for https://github.com/w3c/pointerevents:

== [DOM integration] No state is reset on node removal ==
Nothing in the specification seems to explicitly reset pointer event state for an element, that would make [`hasPointerCapture()`](https://w3c.github.io/pointerevents/#dom-element-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](https://dom.spec.whatwg.org/#concept-node-remove-ext) to reset some state when an element that has pointer capture is removed.

We came across this in the process of working on https://github.com/whatwg/dom/pull/1307, and have this test: https://github.com/web-platform-tests/wpt/blob/master/dom/nodes/moveBefore/tentative/pointer-events.html

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/526 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 5 November 2024 14:53:16 UTC