/[suikacvs]/www/test/dom/element/inner-html/security/iframe-style-data-1.html
Suika

Contents of /www/test/dom/element/inner-html/security/iframe-style-data-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat May 12 03:46:26 2007 UTC (19 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests

1 wakaba 1.1 <!DOCTYPE html>
2     <html>
3     <head>
4     <title>Access to cssRules in &lt;iframe></title>
5     <style type="text/css">
6     iframe {
7     width: 0; height: 0; border-style: none;
8     }
9     </style>
10     </head>
11     <body onload="
12     var r = document.getElementById ('result');
13     r.innerHTML = 'FAIL';
14     var iframe = document.getElementsByTagName ('iframe')[0];
15     var idoc = iframe.contentWindow.document;
16     var istyle = idoc.getElementsByTagName ('style')[0];
17     istyle.innerHTML = 'p{}';
18     if (istyle.innerHTML == 'p{}') {
19     r.innerHTML = 'PASS';
20     }
21     ">
22     <p id="result">FAIL (noscript)</p>
23     <p><iframe src="data:text/html,<html><head><title></title><style type='text/css'></style></head><body></body></html>"></iframe></p>
24     </body>
25     </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24