aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query')
-rw-r--r--tests/query/injections/html/test-html-injections.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/query/injections/html/test-html-injections.html b/tests/query/injections/html/test-html-injections.html
new file mode 100644
index 000000000..536ec8734
--- /dev/null
+++ b/tests/query/injections/html/test-html-injections.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title></title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link href="css/style.css" rel="stylesheet">
+ <style>
+ footer{
+/* ^ css
+*/
+ }
+ </style>
+ <style title="Test Style without type attribute">
+ footer{
+/* ^ css
+*/
+ }
+ </style>
+ <style type="text/css" title="test style with defined type attribute">
+ footer{
+/* ^ css
+*/
+ }
+ </style>
+ </head>
+ <body>
+ <script>
+ const x = 1
+// ^ javascript
+ </script>
+ <script defer>
+ const x = 1
+// ^ javascript
+ </script>
+ <script type="text/javascript">
+ const x = 1
+// ^ javascript
+ </script>
+ <div style="height: 100%">
+<!-- ^ css -->
+ Test div to test css injections for style attributes
+ </div>
+ </body>
+</html>