aboutsummaryrefslogtreecommitdiff
path: root/node_modules/htmlparser2/test/Events/05-cdata-special.json
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/htmlparser2/test/Events/05-cdata-special.json')
-rw-r--r--node_modules/htmlparser2/test/Events/05-cdata-special.json35
1 files changed, 35 insertions, 0 deletions
diff --git a/node_modules/htmlparser2/test/Events/05-cdata-special.json b/node_modules/htmlparser2/test/Events/05-cdata-special.json
new file mode 100644
index 000000000..686cb1a2f
--- /dev/null
+++ b/node_modules/htmlparser2/test/Events/05-cdata-special.json
@@ -0,0 +1,35 @@
+{
+ "name": "CDATA (inside special)",
+ "options": {
+ "handler": {},
+ "parser": {}
+ },
+ "html": "<script>/*<![CDATA[*/ asdf ><asdf></adsf><> fo/*]]>*/</script>",
+ "expected": [
+ {
+ "event": "opentagname",
+ "data": [
+ "script"
+ ]
+ },
+ {
+ "event": "opentag",
+ "data": [
+ "script",
+ {}
+ ]
+ },
+ {
+ "event": "text",
+ "data": [
+ "/*<![CDATA[*/ asdf ><asdf></adsf><> fo/*]]>*/"
+ ]
+ },
+ {
+ "event": "closetag",
+ "data": [
+ "script"
+ ]
+ }
+ ]
+}