05-cdata-special.json 564 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. "name": "CDATA (inside special)",
  3. "options": {
  4. "handler": {},
  5. "parser": {}
  6. },
  7. "html": "<script>/*<![CDATA[*/ asdf ><asdf></adsf><> fo/*]]>*/</script>",
  8. "expected": [
  9. {
  10. "event": "opentagname",
  11. "data": [
  12. "script"
  13. ]
  14. },
  15. {
  16. "event": "opentag",
  17. "data": [
  18. "script",
  19. {}
  20. ]
  21. },
  22. {
  23. "event": "text",
  24. "data": [
  25. "/*<![CDATA[*/ asdf ><asdf></adsf><> fo/*]]>*/"
  26. ]
  27. },
  28. {
  29. "event": "closetag",
  30. "data": [
  31. "script"
  32. ]
  33. }
  34. ]
  35. }