diff options
Diffstat (limited to 'tests/ref/html')
| -rw-r--r-- | tests/ref/html/html-escapable-raw-text-contains-closing-tag.html | 8 | ||||
| -rw-r--r-- | tests/ref/html/html-script.html | 21 | ||||
| -rw-r--r-- | tests/ref/html/html-style.html | 14 |
3 files changed, 43 insertions, 0 deletions
diff --git a/tests/ref/html/html-escapable-raw-text-contains-closing-tag.html b/tests/ref/html/html-escapable-raw-text-contains-closing-tag.html new file mode 100644 index 00000000..9e0b9643 --- /dev/null +++ b/tests/ref/html/html-escapable-raw-text-contains-closing-tag.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + </head> + <body><textarea>hello </textarea></textarea></body> +</html> diff --git a/tests/ref/html/html-script.html b/tests/ref/html/html-script.html new file mode 100644 index 00000000..81b74765 --- /dev/null +++ b/tests/ref/html/html-script.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + </head> + <body> + <script> + const x = 1 + const y = 2 + console.log(x < y, Math.max(1, 2)) + </script> + <script> +console.log(`Hello +World`) + </script> + <script type="text/python">x = 1 +y = 2 +print(x < y, max(x, y))</script> + </body> +</html> diff --git a/tests/ref/html/html-style.html b/tests/ref/html/html-style.html new file mode 100644 index 00000000..c8d558bc --- /dev/null +++ b/tests/ref/html/html-style.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + </head> + <body> + <style> + body { + text: red; + } + </style> + </body> +</html> |
