{
  "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"
      ]
    }
  ]
}