[pointerevents] Should "Setting Pointer Capture" with elements which are in document, but doesn't have associated browsering context

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

== Should "Setting Pointer Capture" with elements which are in document, but doesn't have associated browsering context ==
The spec has just "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 means that document.implementation.createHTMLDocument().body.setPointerCapture(id) should work, which is rather surprising. If that works, why the need for element to be in any document?

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

Received on Monday, 2 October 2017 11:09:15 UTC