diff options
Diffstat (limited to 'node_modules/htmlparser2/test/Events/11-script_in_script.json')
| -rw-r--r-- | node_modules/htmlparser2/test/Events/11-script_in_script.json | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/node_modules/htmlparser2/test/Events/11-script_in_script.json b/node_modules/htmlparser2/test/Events/11-script_in_script.json new file mode 100644 index 00000000..ddbb87c8 --- /dev/null +++ b/node_modules/htmlparser2/test/Events/11-script_in_script.json @@ -0,0 +1,54 @@ +{ + "name": "Scripts creating other scripts", + "options": { + "handler": {}, + "parser": {} + }, + "html": "<p><script>var str = '<script></'+'script>';</script></p>", + "expected": [ + { + "event": "opentagname", + "data": [ + "p" + ] + }, + { + "event": "opentag", + "data": [ + "p", + {} + ] + }, + { + "event": "opentagname", + "data": [ + "script" + ] + }, + { + "event": "opentag", + "data": [ + "script", + {} + ] + }, + { + "event": "text", + "data": [ + "var str = '<script></'+'script>';" + ] + }, + { + "event": "closetag", + "data": [ + "script" + ] + }, + { + "event": "closetag", + "data": [ + "p" + ] + } + ] +}
\ No newline at end of file |
