Skip to content

Commit e42def2

Browse files
authored
URL: fix setters tests
These tests were introduced in the web-platform-tests#38032 According to the URL specification U+000D is a newline character and must be removed before further processing.
1 parent 404735f commit e42def2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: url/resources/setters_tests.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
{
274274
"comment": "Tab and newline are stripped",
275275
"href": "http://test/",
276-
"new_value": "h\u000A\u000Att\u0009ps",
276+
"new_value": "h\u000D\u000Att\u0009ps",
277277
"expected": {
278278
"href": "https://test/",
279279
"protocol": "https:",
@@ -299,7 +299,7 @@
299299
},
300300
{
301301
"href": "http://test/",
302-
"new_value": "https\u000D",
302+
"new_value": "https\u000E",
303303
"expected": {
304304
"href": "http://test/",
305305
"protocol": "http:"

0 commit comments

Comments
 (0)