05-cdata-special.json 564 Bytes
{
  "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"
      ]
    }
  ]
}