Skip to content

Commit

Permalink
Make URL's origin return solely ASCII code points
Browse files Browse the repository at this point in the history
See whatwg/html#2568 for discussion.

See whatwg/html#2689 for the corresponding
change to the HTML Standard.

Tests: web-platform-tests/wpt#5944.

Closes #297.
  • Loading branch information
annevk authored May 19, 2017
1 parent fe6b251 commit 20c3257
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2665,11 +2665,8 @@ url.pathname // "/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%F0%9F%8C%88"</code></pre>
</ol>

<p>The <dfn attribute for=URL><code>origin</code></dfn> attribute's getter must return the
<a lt="Unicode serialization of an origin">Unicode serialization</a> of <a>context object</a>'s
<a for=URL>url</a>'s <a for=url>origin</a>. [[!HTML]]

<p class="note no-backref">It returns the Unicode rather than the ASCII serialization for
compatibility with HTML's <code>MessageEvent</code> feature. [[!HTML]]
<a lt="serialization of an origin">serialization</a> of <a>context object</a>'s <a for=URL>url</a>'s
<a for=url>origin</a>. [[!HTML]]

<p>The <dfn attribute for=URL><code>protocol</code></dfn> attribute's getter must return
<a>context object</a> <a for=URL>url</a>'s <a for=url>scheme</a>, followed by U+003A (:).
Expand Down

0 comments on commit 20c3257

Please sign in to comment.