13-long-cdata-end.json 792 B

12345678910111213141516171819202122
  1. {
  2. "name": "Long CDATA ending",
  3. "options": {
  4. "handler": {},
  5. "parser": {"xmlMode": true}
  6. },
  7. "html": "<before /><tag><![CDATA[ text ]]]></tag><after />",
  8. "expected": [
  9. { "event": "opentagname", "data": [ "before" ] },
  10. { "event": "opentag", "data": [ "before", {} ] },
  11. { "event": "closetag", "data": [ "before" ] },
  12. { "event": "opentagname", "data": [ "tag" ] },
  13. { "event": "opentag", "data": [ "tag", {} ] },
  14. { "event": "cdatastart", "data": [] },
  15. { "event": "text", "data": [ " text ]" ] },
  16. { "event": "cdataend", "data": [] },
  17. { "event": "closetag", "data": [ "tag" ] },
  18. { "event": "opentagname", "data": [ "after" ] },
  19. { "event": "opentag", "data": [ "after", {} ] },
  20. { "event": "closetag", "data": [ "after" ] }
  21. ]
  22. }