Skip to content

Commit

Permalink
Introducing self.origin, a reliable way to get the origin of a global
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Apr 3, 2016
1 parent cfc77d8 commit 8e93632
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -87405,6 +87405,8 @@ interface <dfn>DocumentAndElementEventHandlers</dfn> {

[NoInterfaceObject, Exposed=(Window,Worker)]
interface <dfn>WindowOrWorkerGlobalScope</dfn> {
[Replaceable] readonly attribute USVString <span data-x="dom-origin">origin</span>;

// base64 utility methods
DOMString <span data-x="dom-btoa">btoa</span>(DOMString data);
DOMString <span data-x="dom-atob">atob</span>(DOMString data);
Expand All @@ -87428,6 +87430,18 @@ interface <dfn>WindowOrWorkerGlobalScope</dfn> {
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1229
-->

<dl class="domintro">

<dt><var>origin</var> = self . <code subdfn data-x="dom-origin">origin</code></dt>

<dd><p>Returns the global object's <span>origin</span>, serialised as string.</p></dd>

</dl>

<p>The <dfn data-x="dom-origin"><code>origin</code></dfn> attribute's getter must return this
object's <span>relevant setting object</span>'s <span>origin</span>, <span data-x="Unicode
serialisation of an origin">serialised</span>.</p>


<h3 id="atob">Base64 utility methods</h3>

Expand Down

0 comments on commit 8e93632

Please sign in to comment.