Re: [pointerevents] Should setPointerCapture work in Shadow DOM

Yes, it needs to be spec'ed explicitly in PointerEvents. 
Right now the spec says 
https://w3c.github.io/pointerevents/#dfn-pointer-capture
"If the Element on which this method is invoked does not participate in its ownerDocument's tree, throw an exception with the name InvalidStateError."
That needs to say something else than 'does not participate in its ownerDocument's tree

Maybe something like 'if element's owner document is not shadow-including ancestor of the element'
https://dom.spec.whatwg.org/#concept-shadow-including-ancestor
(I wonder if some spec has better language for this. Maybe HTML spec)

-- 
GitHub Notification of comment by smaug----
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/221#issuecomment-364870991 using your GitHub account

Received on Monday, 12 February 2018 09:38:21 UTC