OLD | NEW |
(Empty) | |
| 1 <script type="text/javascript">foo()</script> |
| 2 <script> |
| 3 "foo bar" |
| 4 </script> |
| 5 |
| 6 ---------------------------------------------------- |
| 7 |
| 8 [ |
| 9 |
| 10 ["tag", [ |
| 11 ["tag", [ |
| 12 ["punctuation", "<"], |
| 13 "script" |
| 14 ]], |
| 15 ["attr-name", [ |
| 16 "type" |
| 17 ]], |
| 18 ["attr-value", [ |
| 19 ["punctuation", "="], |
| 20 ["punctuation", "\""], |
| 21 "text/javascript", |
| 22 ["punctuation", "\""] |
| 23 ]], |
| 24 ["punctuation", ">"] |
| 25 ]], |
| 26 ["script", [ |
| 27 ["function", "foo"], |
| 28 ["punctuation", "("], |
| 29 ["punctuation", ")"] |
| 30 ]], |
| 31 ["tag", [ |
| 32 ["tag", [ |
| 33 ["punctuation", "</"], |
| 34 "script" |
| 35 ]], |
| 36 ["punctuation", ">"] |
| 37 ]], |
| 38 |
| 39 ["tag", [ |
| 40 ["tag", [ |
| 41 ["punctuation", "<"], |
| 42 "script" |
| 43 ]], |
| 44 ["punctuation", ">"] |
| 45 ]], |
| 46 ["script", [ |
| 47 ["string", "\"foo bar\""] |
| 48 ]], |
| 49 ["tag", [ |
| 50 ["tag", [ |
| 51 ["punctuation", "</"], |
| 52 "script" |
| 53 ]], |
| 54 ["punctuation", ">"] |
| 55 ]] |
| 56 ] |
| 57 |
| 58 ---------------------------------------------------- |
| 59 |
| 60 Checks for Javascript usage inside Markup, using <script> tags. |
OLD | NEW |