- From: Hayato Ito <notifications@github.com>
- Date: Fri, 01 Jul 2016 06:46:08 -0700
- To: w3c/pointerlock <pointerlock@noreply.github.com>
- Cc:
- Message-ID: <w3c/pointerlock/pull/4/r69301383@github.com>
> + <dl title='partial interface DocumentOrShadowRoot' class='idl'> > + <dt>readonly attribute Element? pointerLockElement</dt> > + <dd> > + <dfn title="pointerLockElement"></dfn> > + > + <p>If the element, which is set as the target for mouse events while the pointer is > + locked, is a > + <a href="https://dom.spec.whatwg.org/#concept-shadow-including-descendant">shadow-including descendant</a> of the > + <a href="http://dom.spec.whatwg.org/#context-object">context object</a>, > + return the result of the following algorithm: > + <ol> > + <li>Let <var>target</var> be the target for mouse events while the pointer is locked. > + <li>If <var>target</var> is in the same tree as the > + <a href="http://dom.spec.whatwg.org/#context-object">context object</a>, > + let <var>adjusted-target</var> be <var>target</var></li> > + <li>Otherwise: let <var>adjusted-target</var> be the shadow host of <var>target</var> and repeat the following substeps: Unfortunately, you can not use "shadow host of A" if A is not DocumentFragment. :( DOM Standard defines "A's host" only if A is a DocumentFragment, I think. Instead, you might want to "A's root’s host", for example. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/pointerlock/pull/4/files/f6f8888daed63ac5c0432c9d43f4f929efdb07b0#r69301383
Received on Friday, 1 July 2016 13:46:43 UTC