Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What characters are allowed between the import statement and the module string?
- Tested Browsers:
- o) Chrome
- o) Firefox
- o) Edge
- o) Safari
- Note: Not all tested browsers were up to date so there could be some results, which do not work in the latest version
- Test case:
- <script type="module">
- import*chr*"data:text/javascript,alert(123)"
- </script>
- Results:
- Chars valid in all browser:
- [0x09,0x0a,0x0b,0x0c,0x0d,0x20,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000,0xfeff]
- Safari + Edge = [0x180e]
- Firefox = [0xfffe,0x1000c]
Advertisement
Add Comment
Please, Sign In to add comment