|
@@ -1292,7 +1292,7 @@
|
|
|
{
|
|
{
|
|
|
"input": "#β",
|
|
"input": "#β",
|
|
|
"base": "http://example.org/foo/bar",
|
|
"base": "http://example.org/foo/bar",
|
|
|
- "href": "http://example.org/foo/bar#β",
|
|
|
|
|
|
|
+ "href": "http://example.org/foo/bar#%CE%B2",
|
|
|
"origin": "http://example.org",
|
|
"origin": "http://example.org",
|
|
|
"protocol": "http:",
|
|
"protocol": "http:",
|
|
|
"username": "",
|
|
"username": "",
|
|
@@ -1302,7 +1302,7 @@
|
|
|
"port": "",
|
|
"port": "",
|
|
|
"pathname": "/foo/bar",
|
|
"pathname": "/foo/bar",
|
|
|
"search": "",
|
|
"search": "",
|
|
|
- "hash": "#β"
|
|
|
|
|
|
|
+ "hash": "#%CE%B2"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"input": "data:text/html,test#test",
|
|
"input": "data:text/html,test#test",
|
|
@@ -2161,7 +2161,7 @@
|
|
|
{
|
|
{
|
|
|
"input": "http://www.google.com/foo?bar=baz# »",
|
|
"input": "http://www.google.com/foo?bar=baz# »",
|
|
|
"base": "about:blank",
|
|
"base": "about:blank",
|
|
|
- "href": "http://www.google.com/foo?bar=baz# »",
|
|
|
|
|
|
|
+ "href": "http://www.google.com/foo?bar=baz# %C2%BB",
|
|
|
"origin": "http://www.google.com",
|
|
"origin": "http://www.google.com",
|
|
|
"protocol": "http:",
|
|
"protocol": "http:",
|
|
|
"username": "",
|
|
"username": "",
|
|
@@ -2171,12 +2171,12 @@
|
|
|
"port": "",
|
|
"port": "",
|
|
|
"pathname": "/foo",
|
|
"pathname": "/foo",
|
|
|
"search": "?bar=baz",
|
|
"search": "?bar=baz",
|
|
|
- "hash": "# »"
|
|
|
|
|
|
|
+ "hash": "# %C2%BB"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"input": "data:test# »",
|
|
"input": "data:test# »",
|
|
|
"base": "about:blank",
|
|
"base": "about:blank",
|
|
|
- "href": "data:test# »",
|
|
|
|
|
|
|
+ "href": "data:test# %C2%BB",
|
|
|
"origin": "null",
|
|
"origin": "null",
|
|
|
"protocol": "data:",
|
|
"protocol": "data:",
|
|
|
"username": "",
|
|
"username": "",
|
|
@@ -2186,7 +2186,7 @@
|
|
|
"port": "",
|
|
"port": "",
|
|
|
"pathname": "test",
|
|
"pathname": "test",
|
|
|
"search": "",
|
|
"search": "",
|
|
|
- "hash": "# »"
|
|
|
|
|
|
|
+ "hash": "# %C2%BB"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"input": "http://[www.google.com]/",
|
|
"input": "http://[www.google.com]/",
|
|
@@ -4356,5 +4356,22 @@
|
|
|
"search": "",
|
|
"search": "",
|
|
|
"searchParams": "",
|
|
"searchParams": "",
|
|
|
"hash": ""
|
|
"hash": ""
|
|
|
|
|
+ },
|
|
|
|
|
+ "# Percent encoding of fragments",
|
|
|
|
|
+ {
|
|
|
|
|
+ "input": "http://foo.bar/baz?qux#foo\bbar",
|
|
|
|
|
+ "base": "about:blank",
|
|
|
|
|
+ "href": "http://foo.bar/baz?qux#foo%08bar",
|
|
|
|
|
+ "origin": "http://foo.bar",
|
|
|
|
|
+ "protocol": "http:",
|
|
|
|
|
+ "username": "",
|
|
|
|
|
+ "password": "",
|
|
|
|
|
+ "host": "foo.bar",
|
|
|
|
|
+ "hostname": "foo.bar",
|
|
|
|
|
+ "port": "",
|
|
|
|
|
+ "pathname": "/baz",
|
|
|
|
|
+ "search": "?qux",
|
|
|
|
|
+ "searchParams": "",
|
|
|
|
|
+ "hash": "#foo%08bar"
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|