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>While the pointer is locked, and
> +    the element set as the target for mouse events 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>,
> +    returns the result of the
> +           <a href="https://https://w3c.github.io/webcomponents/spec/shadow/#dfn-retargeting-algorithm">retargeting algorithm</a>
> +           with the
> +           <a href="http://dom.spec.whatwg.org/#context-object">context object</a> and
> +    the element as input, if the result and the
> +           <a href="http://dom.spec.whatwg.org/#context-object">context object</a> are in the
> +           same tree, otherwise returns null.</p>

What situations can cause the retargeting result and the context object to not be in the same tree?

This algorithm is difficult to understand and warrants examples.

---
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/3ea549a5dac7b193f45d115af4f404f659cf0090#r69953733

Received on Thursday, 7 July 2016 17:52:42 UTC