Re: [whatwg/fullscreen] Update fullscreen spec to be Shadow DOM compliant (#54)

annevk commented on this pull request.



> -<p class=note>Use
-<a attribute for=Document lt=fullscreenElement><code>document.fullscreenElement</code></a> instead.
+<p class=note>Use {{DocumentOrShadowRoot/fullscreenElement}} instead.
+
+<p>The
+<dfn attribute for=DocumentOrShadowRoot id=dom-document-fullscreenelement><code>fullscreenElement</code></dfn>
+attribute's getter must run these steps:
+
+<ol>
+  <li><p>If the <a>context object</a> is a <a>shadow root</a> and its <a for=DocumentFragment>host</a>
+  is not <a>connected</a>, then return null.</li>
+  <li><p>Let <var>candidate</var> be the result of <a>retargeting</a> <a>fullscreen element</a>
+  against the <a>context object</a>.
+  <li><p>If <var>candidate</var> and the <a>context object</a> are in the same tree,
+  return <var>candidate</var>.
+  <li><p>Return null.

Just use a single space for indentation. Newline between the `<li>`s.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/pull/54#pullrequestreview-2135346

Received on Thursday, 29 September 2016 13:18:58 UTC