Re: [w3c/pointerlock] Update for Shadow DOM (#4)

> +      <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 which is a

Hmm. This definition is not equivalent to the definition which the current `activeElement` is using.
In your definition, there are multiple shadow hosts which meet the condition. You can not use "the" shadow host here. :(

Could you try to update the condition? I am happy to help you if you need it. :)



---
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/aff383515f13558170c159b59c8abc0157f8c473#r69236085

Received on Friday, 1 July 2016 01:23:40 UTC