Skip to content

Commit

Permalink
Editorial: clarify origin invariants
Browse files Browse the repository at this point in the history
Fixes #1093.
  • Loading branch information
annevk committed Apr 24, 2016
1 parent 1a0b5e8 commit e337726
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -80045,27 +80045,24 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
<dd>
<p>A <span data-x="concept-origin-tuple">tuple</span> consists of:

<ul>
<li><p>A <dfn data-export="" data-x="concept-origin-scheme">scheme</dfn> (a
<span data-x="concept-url-scheme">scheme</span>).</p></li>
<li><p>A <dfn data-export="" data-x="concept-origin-host">host</dfn> (a <span
data-x="concept-host">host</span>).</p></li>
<li><p>A <dfn data-export="" data-x="concept-origin-port">port</dfn> (a <span
data-x="concept-url-port">port</span>).</p></li>
<li>
<p>A <dfn data-export="" data-x="concept-origin-domain">domain</dfn> (null or a <span
data-x="concept-domain">domain</span>). Null unless stated otherwise.

<p class="note">A <code>Document</code> object's <span>origin</span>'s <span
data-x="concept-origin-domain">domain</span> can be changed through the <code
data-x="dom-document-domain">document.domain</code> API.</p>
</li>
<ul class="brief">
<li>A <dfn data-export="" data-x="concept-origin-scheme">scheme</dfn> (a <span
data-x="concept-url-scheme">scheme</span>).</li>
<li>A <dfn data-export="" data-x="concept-origin-host">host</dfn> (a <span
data-x="concept-host">host</span>).</li>
<li>A <dfn data-export="" data-x="concept-origin-port">port</dfn> (a <span
data-x="concept-url-port">port</span>).</li>
<li>A <dfn data-export="" data-x="concept-origin-domain">domain</dfn> (null or a <span
data-x="concept-domain">domain</span>). Null unless stated otherwise.</li>
</ul>
</dd>
</dl>

<p class="note"><span data-x="origin">Origins</span> can be shared, e.g., among multiple
<code>Document</code> objects.</p>
<code>Document</code> objects. Furthermore, <span data-x="origin">origins</span> are generally
immutable. Only the <span data-x="concept-origin-domain">domain</span> of a <span
data-x="concept-origin-tuple">tuple origin</span> can be changed, and only through the <code
data-x="dom-document-domain">document.domain</code> API.</p>

<p>The <dfn data-export="" data-x="concept-origin-effective-domain">effective domain</dfn> of an
<span>origin</span> <var>origin</var> is computed as follows:</p>
Expand Down

0 comments on commit e337726

Please sign in to comment.