Skip to content

Commit

Permalink
Add more tests for data: URLs with space in body
Browse files Browse the repository at this point in the history
This is to bring attention to the surprising difference between
application/xml, application/javascript and text/javascript. In Chrome
and Firefox, only the application/javascript case fails.
  • Loading branch information
foolip committed Mar 8, 2018
1 parent 4a9668d commit 08d063d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fetch/data-urls/resources/data-urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,18 @@
["data:image/png,X X",
"image/png",
[88, 32, 88]],
["data:application/javascript,X X",
"application/javascript",
[88, 32, 88]],
["data:application/xml,X X",
"application/xml",
[88, 32, 88]],
["data:text/javascript,X X",
"text/javascript",
[88, 32, 88]],
["data:text/plain,X X",
"text/plain",
[88, 32, 88]],
["data:unknown/unknown,X X",
"unknown/unknown",
[88, 32, 88]],
Expand Down

0 comments on commit 08d063d

Please sign in to comment.