Blame view

node_modules/htmlparser2/test/Events/05-cdata-special.json 564 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
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"
        ]
      }
    ]
  }