aboutsummaryrefslogtreecommitdiff
path: root/node_modules/htmlparser2/test/Events/04-cdata.json
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/htmlparser2/test/Events/04-cdata.json')
-rw-r--r--node_modules/htmlparser2/test/Events/04-cdata.json43
1 files changed, 43 insertions, 0 deletions
diff --git a/node_modules/htmlparser2/test/Events/04-cdata.json b/node_modules/htmlparser2/test/Events/04-cdata.json
new file mode 100644
index 00000000..71d4860c
--- /dev/null
+++ b/node_modules/htmlparser2/test/Events/04-cdata.json
@@ -0,0 +1,43 @@
+{
+ "name": "CDATA",
+ "options": {
+ "handler": {},
+ "parser": {"xmlMode": true}
+ },
+ "html": "<tag><![CDATA[ asdf ><asdf></adsf><> fo]]></tag>",
+ "expected": [
+ {
+ "event": "opentagname",
+ "data": [
+ "tag"
+ ]
+ },
+ {
+ "event": "opentag",
+ "data": [
+ "tag",
+ {}
+ ]
+ },
+ {
+ "event": "cdatastart",
+ "data": []
+ },
+ {
+ "event": "text",
+ "data": [
+ " asdf ><asdf></adsf><> fo"
+ ]
+ },
+ {
+ "event": "cdataend",
+ "data": []
+ },
+ {
+ "event": "closetag",
+ "data": [
+ "tag"
+ ]
+ }
+ ]
+} \ No newline at end of file