No Description

04-unescaped_in_script.json 715B

123456789101112131415161718192021222324252627
  1. {
  2. "name": "Unescaped chars in script",
  3. "options": {},
  4. "html": "<head><script language=\"Javascript\">var foo = \"<bar>\"; alert(2 > foo); var baz = 10 << 2; var zip = 10 >> 1; var yap = \"<<>>>><<\";</script></head>",
  5. "expected": [
  6. {
  7. "type": "tag",
  8. "name": "head",
  9. "attribs": {},
  10. "children": [
  11. {
  12. "type": "script",
  13. "name": "script",
  14. "attribs": {
  15. "language": "Javascript"
  16. },
  17. "children": [
  18. {
  19. "data": "var foo = \"<bar>\"; alert(2 > foo); var baz = 10 << 2; var zip = 10 >> 1; var yap = \"<<>>>><<\";",
  20. "type": "text"
  21. }
  22. ]
  23. }
  24. ]
  25. }
  26. ]
  27. }