Skip to content

Commit aac12b2

Browse files
authored
add caret char to path percent-encode set (#908)
* update wpt for percent-encoding caret char * add caret char to path percent-encode set
1 parent c22e188 commit aac12b2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

include/ada/character_sets-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ constexpr uint8_t PATH_PERCENT_ENCODE[32] = {
404404
// 50 51 52 53 54 55 56 57
405405
0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
406406
// 58 59 5A 5B 5C 5D 5E 5F
407-
0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
407+
0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x40 | 0x00,
408408
// 60 61 62 63 64 65 66 67
409409
0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
410410
// 68 69 6A 6B 6C 6D 6E 6F

tests/wpt/setters_tests.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,8 +1921,8 @@
19211921
"href": "a:/",
19221922
"new_value": "\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
19231923
"expected": {
1924-
"href": "a:/%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E%3F@AZ[\\]^_%60az%7B|%7D~%7F%C2%80%C2%81%C3%89%C3%A9",
1925-
"pathname": "/%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E%3F@AZ[\\]^_%60az%7B|%7D~%7F%C2%80%C2%81%C3%89%C3%A9"
1924+
"href": "a:/%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E%3F@AZ[\\]%5E_%60az%7B|%7D~%7F%C2%80%C2%81%C3%89%C3%A9",
1925+
"pathname": "/%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E%3F@AZ[\\]%5E_%60az%7B|%7D~%7F%C2%80%C2%81%C3%89%C3%A9"
19261926
}
19271927
},
19281928
{

tests/wpt/urltestdata.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8634,10 +8634,10 @@
86348634
"hash": "",
86358635
"host": "host",
86368636
"hostname": "host",
8637-
"href": "foo://host/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
8637+
"href": "foo://host/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]%5E_%60%7B|%7D~",
86388638
"origin": "null",
86398639
"password": "",
8640-
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
8640+
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]%5E_%60%7B|%7D~",
86418641
"port":"",
86428642
"protocol": "foo:",
86438643
"search": "",
@@ -8649,10 +8649,10 @@
86498649
"hash": "",
86508650
"host": "host",
86518651
"hostname": "host",
8652-
"href": "wss://host/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
8652+
"href": "wss://host/%20!%22$%&'()*+,-./:;%3C=%3E@[/]%5E_%60%7B|%7D~",
86538653
"origin": "wss://host",
86548654
"password": "",
8655-
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
8655+
"pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[/]%5E_%60%7B|%7D~",
86568656
"port":"",
86578657
"protocol": "wss:",
86588658
"search": "",

0 commit comments

Comments
 (0)