Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) Serialise a unique (non-host) origin to the string 'null' …
…instead of the empty stirng.

git-svn-id: http://svn.whatwg.org/webapps@2356 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2008
1 parent 04e61d0 commit 1e563c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 2 additions & 4 deletions index
Expand Up @@ -32020,8 +32020,7 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>
<a href=#origin-0>origin</a>:</p>

<ol><li><p>If the <a href=#origin-0>origin</a> in question is not a
scheme/host/port tuple, then return the empty string and abort
these steps.</li>
scheme/host/port tuple, then return the literal string "<code title="">null</code>" and abort these steps.</li>

<li><p>Otherwise, let <var title="">result</var> be the scheme part
of the <a href=#origin-0>origin</a> tuple.</li>
Expand All @@ -32046,8 +32045,7 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>
<a href=#origin-0>origin</a>:</p>

<ol><li><p>If the <a href=#origin-0>origin</a> in question is not a
scheme/host/port tuple, then return the empty string and abort
these steps.</li>
scheme/host/port tuple, then return the literal string "<code title="">null</code>" and abort these steps.</li>

<li><p>Otherwise, let <var title="">result</var> be the scheme part
of the <a href=#origin-0>origin</a> tuple.</li>
Expand Down
10 changes: 6 additions & 4 deletions source
Expand Up @@ -36351,8 +36351,8 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>
<ol>

<li><p>If the <span>origin</span> in question is not a
scheme/host/port tuple, then return the empty string and abort
these steps.</p></li>
scheme/host/port tuple, then return the literal string "<code
title="">null</code>" and abort these steps.</p></li>

<li><p>Otherwise, let <var title="">result</var> be the scheme part
of the <span>origin</span> tuple.</p></li>
Expand All @@ -36375,15 +36375,16 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>

</ol>


<p>The <dfn>ASCII serialization of an origin</dfn> is the string
obtained by applying the following algorithm to the given
<span>origin</span>:</p>

<ol>

<li><p>If the <span>origin</span> in question is not a
scheme/host/port tuple, then return the empty string and abort
these steps.</p></li>
scheme/host/port tuple, then return the literal string "<code
title="">null</code>" and abort these steps.</p></li>

<li><p>Otherwise, let <var title="">result</var> be the scheme part
of the <span>origin</span> tuple.</p></li>
Expand Down Expand Up @@ -36415,6 +36416,7 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>

</ol>


<p>Two <span title="origin">origins</span> are said to be the
<dfn>same origin</dfn> if the following algorithm returns true:</p>

Expand Down

0 comments on commit 1e563c2

Please sign in to comment.