1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/csp/file_CSP_inlinescript_main_spec_compliant.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +<html> 1.5 + <head> 1.6 + <title>CSP inline script tests</title> 1.7 + </head> 1.8 + <body onload="window.parent.scriptRan(false, 'eventattr', 'event attribute in body tag fired')"> 1.9 + 1.10 + <script type="text/javascript"> 1.11 + window.parent.scriptRan(false, "textnode", "text node in a script tag executed."); 1.12 + </script> 1.13 + 1.14 + <iframe src='javascript:window.parent.parent.scriptRan(false, "jsuri", "javascript: uri in image tag")' ></iframe> 1.15 + 1.16 + <a id='anchortoclick' href='javascript:window.parent.scriptRan(false, "jsuri", "javascript: uri in anchor tag ran when clicked.");'>stuff</a> 1.17 + </body> 1.18 +</html>