Skip to content

Commit

Permalink
Rename WindowOrWorkerOrShadowRealmGlobalScope to UniversalGlobalScope
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Sep 25, 2024
1 parent a0a5d73 commit d5724da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -10659,7 +10659,7 @@ o.myself = o;</code></pre>

<div w-nodev>

<p>The <dfn method for="WindowOrWorkerOrShadowRealmGlobalScope"
<p>The <dfn method for="UniversalGlobalScope"
data-x="dom-structuredClone"><code>structuredClone(<var>value</var>,
<var>options</var>)</code></dfn> method steps are:</p>

Expand Down Expand Up @@ -112775,16 +112775,16 @@ interface mixin <dfn interface>WindowEventHandlers</dfn> {
</div>


<h3 id="windoworworkerorshadowrealmglobalscope-mixin">The <code>WindowOrWorkerOrShadowRealmGlobalScope</code> mixin</h3>
<h3 id="universalglobalscope-mixin">The <code>UniversalGlobalScope</code> mixin</h3>

<p>The <code>WindowOrWorkerOrShadowRealmGlobalScope</code> mixin is for use of APIs that are to be exposed on
<code>Window</code> and <code>WorkerGlobalScope</code> objects.</p>
<p>The <code>UniversalGlobalScope</code> mixin is for use of APIs that are to be exposed on all
global objects.</p>

<p class="note">Other standards are encouraged to further extend it using <code data-x="">partial
interface mixin <span>WindowOrWorkerOrShadowRealmGlobalScope</span> { &hellip; };</code> along with an
interface mixin <span>UniversalGlobalScope</span> { &hellip; };</code> along with an
appropriate reference.</p>

<pre><code class="idl">interface mixin <dfn interface>WindowOrWorkerOrShadowRealmGlobalScope</dfn> {
<pre><code class="idl">interface mixin <dfn interface>UniversalGlobalScope</dfn> {
// base64 utility methods
DOMString <span data-x="dom-btoa">btoa</span>(DOMString data);
ByteString <span data-x="dom-atob">atob</span>(DOMString data);
Expand Down Expand Up @@ -112835,15 +112835,15 @@ interface mixin <dfn interface>WindowEventHandlers</dfn> {

<div w-nodev>

<p>The <dfn method for="WindowOrWorkerOrShadowRealmGlobalScope" data-x="dom-btoa"><code
<p>The <dfn method for="UniversalGlobalScope" data-x="dom-btoa"><code
id="dom-windowbase64-btoa">btoa(<var>data</var>)</code></dfn> method must throw an
<span>"<code>InvalidCharacterError</code>"</span> <code>DOMException</code> if <var>data</var>
contains any character whose code point is greater than U+00FF. Otherwise, the user agent must
convert <var>data</var> to a byte sequence whose <var>n</var>th byte is the eight-bit
representation of the <var>n</var>th code point of <var>data</var>, and then must apply
<span>forgiving-base64 encode</span> to that byte sequence and return the result.</p>

<p>The <dfn method for="WindowOrWorkerOrShadowRealmGlobalScope" data-x="dom-atob"><code
<p>The <dfn method for="UniversalGlobalScope" data-x="dom-atob"><code
id="dom-windowbase64-atob">atob(<var>data</var>)</code></dfn> method steps are:</p>

<ol>
Expand Down

0 comments on commit d5724da

Please sign in to comment.