OLD | NEW |
(Empty) | |
| 1 script alert(42); |
| 2 script(type='text/javascript') alert(42); |
| 3 |
| 4 ---------------------------------------------------- |
| 5 |
| 6 [ |
| 7 ["tag", [ |
| 8 "script" |
| 9 ]], |
| 10 ["script", [ |
| 11 ["function", "alert"], |
| 12 ["punctuation", "("], |
| 13 ["number", "42"], |
| 14 ["punctuation", ")"], |
| 15 ["punctuation", ";"] |
| 16 ]], |
| 17 ["tag", [ |
| 18 "script", |
| 19 ["attributes", [ |
| 20 ["punctuation", "("], |
| 21 ["attr-name", "type"], |
| 22 ["punctuation", "="], |
| 23 ["attr-value", [["string", "'text/javascript'"]]], |
| 24 ["punctuation", ")"] |
| 25 ]] |
| 26 ]], |
| 27 ["script", [ |
| 28 ["function", "alert"], |
| 29 ["punctuation", "("], |
| 30 ["number", "42"], |
| 31 ["punctuation", ")"], |
| 32 ["punctuation", ";"] |
| 33 ]] |
| 34 ] |
| 35 |
| 36 ---------------------------------------------------- |
| 37 |
| 38 Checks for single-line scripts. |
OLD | NEW |