11-script_in_script.json 796 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "name": "Scripts creating other scripts",
  3. "options": {
  4. "handler": {},
  5. "parser": {}
  6. },
  7. "html": "<p><script>var str = '<script></'+'script>';</script></p>",
  8. "expected": [
  9. {
  10. "event": "opentagname",
  11. "data": [
  12. "p"
  13. ]
  14. },
  15. {
  16. "event": "opentag",
  17. "data": [
  18. "p",
  19. {}
  20. ]
  21. },
  22. {
  23. "event": "opentagname",
  24. "data": [
  25. "script"
  26. ]
  27. },
  28. {
  29. "event": "opentag",
  30. "data": [
  31. "script",
  32. {}
  33. ]
  34. },
  35. {
  36. "event": "text",
  37. "data": [
  38. "var str = '<script></'+'script>';"
  39. ]
  40. },
  41. {
  42. "event": "closetag",
  43. "data": [
  44. "script"
  45. ]
  46. },
  47. {
  48. "event": "closetag",
  49. "data": [
  50. "p"
  51. ]
  52. }
  53. ]
  54. }