Skip to content

Commit 0098115

Browse files
committed
Make URL's origin return solely ASCII code points
See whatwg/html#2568 for discussion. See whatwg/html#2689 for the corresponding change to the HTML Standard. Closes #297.
1 parent fe6b251 commit 0098115

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

url.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,11 +2665,8 @@ url.pathname // "/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%F0%9F%8C%88"</code></pre>
26652665
</ol>
26662666

26672667
<p>The <dfn attribute for=URL><code>origin</code></dfn> attribute's getter must return the
2668-
<a lt="Unicode serialization of an origin">Unicode serialization</a> of <a>context object</a>'s
2669-
<a for=URL>url</a>'s <a for=url>origin</a>. [[!HTML]]
2670-
2671-
<p class="note no-backref">It returns the Unicode rather than the ASCII serialization for
2672-
compatibility with HTML's <code>MessageEvent</code> feature. [[!HTML]]
2668+
<a lt="serialization of an origin">serialization</a> of <a>context object</a>'s <a for=URL>url</a>'s
2669+
<a for=url>origin</a>. [[!HTML]]
26732670

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

0 commit comments

Comments
 (0)