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

> +          <p>Returns null if lock is pending or if pointer is unlocked.</p>
> +          <pre class='example highlight' id="example-retarget-pointerlock">
> +              &lt;body&gt;
> +                &lt;div id=&quot;host1&quot;&gt;
> +                  &lt;shadow-root id=&quot;root1&quot;&gt;
> +                    &lt;canvas id=&quot;canvas1&quot;&gt;&lt;/canvas&gt;
> +                  &lt;/shadow-root&gt;
> +                &lt;/div&gt;
> +                &lt;div id=&quot;host2&quot;&gt;
> +                  &lt;shadow-root id=&quot;root2&quot;&gt;
> +                    &lt;canvas id=&quot;canvas2&quot;&gt;&lt;/canvas&gt;
> +                  &lt;/shadow-root&gt;
> +                &lt;/div&gt;
> +              &lt;/body&gt;
> +          </pre>
> +          <p>Note: the example uses fictional <code>shadow-root</code> element to denote a

In this section I think that all ids can be used raw, without needing the element type prefixes. E.g.
canvas#canvas1 -> canvas1
div#host1 -> host1

---
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/6b20580e43e3d2851ebba618dfc83e922eede90a#r70138653

Received on Friday, 8 July 2016 20:50:25 UTC