OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <div id="hidden" style="visibility: hidden"> | 6 <div id="hidden" style="visibility: hidden"> |
7 <script id="script">/*"'&<> "'&<>&#
160;"'&<> */</script> | 7 <script id="script">/*"'&<> "'&<>&#
160;"'&<> */</script> |
8 <style id="style">/*"'&<> "'&<>
0;"'&<> */</style> | 8 <style id="style">/*"'&<> "'&<>
0;"'&<> */</style> |
9 <textarea id="textarea">/*"'&<> "'&<
2; "'&<> */</textarea> | 9 <textarea id="textarea">/*"'&<> "'&<
2; "'&<> */</textarea> |
10 <xmp id="xmp">/*"'&<> "'&<> "'
&<> */</xmp> | 10 <xmp id="xmp">/*"'&<> "'&<> "'
&<> */</xmp> |
11 </div> | 11 </div> |
12 <script> | 12 <script> |
13 description("Tests that accessing the innerHTML property of a text node encodes
harmful entities which can result in cross site scripting."); | 13 description("Tests that accessing the innerHTML property of a text node encodes
harmful entities which can result in cross site scripting."); |
(...skipping 16 matching lines...) Expand all Loading... |
30 return document.getElementById(textnode).outerHTML; | 30 return document.getElementById(textnode).outerHTML; |
31 } | 31 } |
32 | 32 |
33 for (var i in tests) { | 33 for (var i in tests) { |
34 shouldBe(tests[i][0], tests[i][1]); | 34 shouldBe(tests[i][0], tests[i][1]); |
35 } | 35 } |
36 | 36 |
37 </script> | 37 </script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |