aboutsummaryrefslogtreecommitdiff
path: root/node_modules/htmlparser2/test/Events/05-cdata-special.json
blob: 686cb1a2f4650e0eb420a65106ffe4e010a8b116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"
      ]
    }
  ]
}