From 20c3257194db218c47526ba4ef4894a09e3847c9 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 19 May 2017 06:15:28 -0700 Subject: [PATCH] Make URL's origin return solely ASCII code points See https://github.com/whatwg/html/issues/2568 for discussion. See https://github.com/whatwg/html/pull/2689 for the corresponding change to the HTML Standard. Tests: https://github.com/w3c/web-platform-tests/pull/5944. Closes #297. --- url.bs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/url.bs b/url.bs index c51adc58..d6de57c8 100644 --- a/url.bs +++ b/url.bs @@ -2665,11 +2665,8 @@ url.pathname // "/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%F0%9F%8C%88"

The origin attribute's getter must return the -Unicode serialization of context object's -url's origin. [[!HTML]] - -

It returns the Unicode rather than the ASCII serialization for -compatibility with HTML's MessageEvent feature. [[!HTML]] +serialization of context object's url's +origin. [[!HTML]]

The protocol attribute's getter must return context object url's scheme, followed by U+003A (:).