Re: [w3c/screen-orientation] Editorial: combine safety check steps into new section (PR #251)

@marcoscaceres commented on this pull request.



> +          The <dfn>common safety checks</dfn> for a {{Document}}
+          |document:Document| are the following steps:
+        </p>
+        <ol class="algorithm">
+          <li data-tests="non-fully-active.html">If |document| is not
+          [=Document/fully active=], [=exception/throw=] an
+          {{"InvalidStateError"}} {{DOMException}}.
+          </li>
+          <li data-tests="lock-sandboxed-iframe.html">If |document| has the
+          [=sandboxed orientation lock browsing context flag=] set,
+          [=exception/throw=] {{"SecurityError"}} {{DOMException}}.
+          </li>
+          <li data-tests="hidden_document.html">If |document|'s
+          [=Document/visibility state=] is "hidden", [=exception/throw=]
+          {{"SecurityError"}} {{DOMException}}.
+          </li>

Yeah, that's ok. And yeah, will do that as a followup. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/pull/251#discussion_r1184564815
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/screen-orientation/pull/251/review/1412324020@github.com>

Received on Thursday, 4 May 2023 05:45:41 UTC