{
  "name": "CDATA edge-cases",
  "options": {
    "parser": {"recognizeCDATA": true}
  },
  "html": "<![CDATA><![CDATA[[]]sdaf]]><![CDATA[foo",
  "expected": [
    {
      "event": "processinginstruction",
      "data": [
        "![cdata",
        "![CDATA"
      ]
    },
    { "event": "cdatastart", "data": [] },
    { "event": "text",     "data": [ "[]]sdaf" ] },
    { "event": "cdataend",  "data": [] },
    { "event": "cdatastart", "data": [] },
    { "event": "text",     "data": [ "foo" ] },
    { "event": "cdataend",  "data": [] }
  ]
}