aboutsummaryrefslogtreecommitdiff
path: root/node_modules/htmlparser2/test/Events/02-template.json
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/htmlparser2/test/Events/02-template.json')
-rw-r--r--node_modules/htmlparser2/test/Events/02-template.json63
1 files changed, 63 insertions, 0 deletions
diff --git a/node_modules/htmlparser2/test/Events/02-template.json b/node_modules/htmlparser2/test/Events/02-template.json
new file mode 100644
index 00000000..df344b6a
--- /dev/null
+++ b/node_modules/htmlparser2/test/Events/02-template.json
@@ -0,0 +1,63 @@
+{
+ "name": "Template script tags",
+ "options": {
+ "handler": {},
+ "parser": {}
+ },
+ "html": "<p><script type=\"text/template\"><h1>Heading1</h1></script></p>",
+ "expected": [
+ {
+ "event": "opentagname",
+ "data": [
+ "p"
+ ]
+ },
+ {
+ "event": "opentag",
+ "data": [
+ "p",
+ {}
+ ]
+ },
+ {
+ "event": "opentagname",
+ "data": [
+ "script"
+ ]
+ },
+ {
+ "event": "attribute",
+ "data": [
+ "type",
+ "text/template"
+ ]
+ },
+ {
+ "event": "opentag",
+ "data": [
+ "script",
+ {
+ "type": "text/template"
+ }
+ ]
+ },
+ {
+ "event": "text",
+ "data": [
+ "<h1>Heading1</h1>"
+ ]
+ },
+ {
+ "event": "closetag",
+ "data": [
+ "script"
+ ]
+ },
+ {
+ "event": "closetag",
+ "data": [
+ "p"
+ ]
+ }
+ ]
+} \ No newline at end of file