Skip to content
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

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

Closed
smaug---- opened this issue Oct 2, 2017 · 2 comments
Assignees
Labels

Comments

@smaug----
Copy link
Contributor

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?

@NavidZ
Copy link
Member

NavidZ commented Mar 14, 2018

We will follow the same wording as PointerLock spec saying restricting the capture to the active document.

@patrickhlauke
Copy link
Member

I believe this is addressed by #246 and #247 (@smaug---- feel free to reopen if you believe this needs further clarification)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants