@@ -46,7 +46,7 @@ pub fn set_href(url: &mut Url, value: &str) -> Result<(), ParseError> {
/// Getter for https://url.spec.whatwg.org/#dom-url-origin
pub fn origin(url: &Url) -> String {
- url.origin().unicode_serialization()
+ url.origin().ascii_serialization()
}
/// Getter for https://url.spec.whatwg.org/#dom-url-protocol
@@ -3536,7 +3536,7 @@
"input": "http://你好你好",
"base": "http://other.com/",
"href": "http://xn--6qqa088eba/",
- "origin": "http://你好你好",
+ "origin": "http://xn--6qqa088eba",
"protocol": "http:",
"username": "",
"password": "",