Skip to content

Commit

Permalink
Add tests for processing non-ASCII data URLs (#32447)
Browse files Browse the repository at this point in the history
In particular, that any `charset` parameter of the MIME type does not
affect the URL parsing or decoding of the content.
  • Loading branch information
Andreu Botella authored Jan 25, 2022
1 parent 33d3bcf commit 7c79d99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fetch/data-urls/resources/data-urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
["data:text/plain;Charset=UTF-8,%C2%B1",
"text/plain;charset=UTF-8",
[194, 177]],
["data:text/plain;charset=windows-1252,áñçə💩",
"text/plain;charset=windows-1252",
[195, 161, 195, 177, 195, 167, 201, 153, 240, 159, 146, 169]],
["data:text/plain;charset=UTF-8,áñçə💩",
"text/plain;charset=UTF-8",
[195, 161, 195, 177, 195, 167, 201, 153, 240, 159, 146, 169]],
["data:image/gif,%C2%B1",
"image/gif",
[194, 177]],
Expand Down

0 comments on commit 7c79d99

Please sign in to comment.