W3C home > Mailing lists > Public > public-pointer-events@w3.org > October to December 2017

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

From: smaug---- via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Oct 2017 11:09:25 +0000
To: public-pointer-events@w3.org
Message-ID: <issues.opened-262051116-1506942551-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 October 2017 11:09:15 UTC