Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkgs/markdown/test/gfm/disallowed_raw_html_extension.unit
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
</script>
<<<
&lt;/script>
>>> HTML attributes with unquoted values (block)
<script src=//evil/x.js>
<<<
&lt;script src=//evil/x.js>
>>> Other disallowed tags like iframe (block)
<iframe srcdoc="evil">
<<<
&lt;iframe srcdoc="evil">
>>> Tags with attributes (inline)
foo <script src="foo.js"></script>
<<<
Expand All @@ -41,3 +49,11 @@ foo <script/>
foo </script>
<<<
<p>foo &lt;/script></p>
>>> HTML attributes with unquoted values (inline)
foo <script src=//evil/x.js>
<<<
<p>foo &lt;script src=//evil/x.js></p>
>>> Other disallowed tags like iframe (inline)
foo <iframe srcdoc="evil">
<<<
<p>foo &lt;iframe srcdoc="evil"></p>
Loading