Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / get-iframe-with-integer-name.html
1 <html>
2 <script>
3 if (window.testRunner)
4     testRunner.dumpAsText();
5
6 function runTest() {
7     if (document['1'] && document[1])
8         document.getElementById('result').innerHTML = 'SUCCESS';
9 }
10 </script>
11 <body onload='runTest()'>
12     <iframe name='1'></iframe>
13     <div>This tests that an iframe with an integer name can be accessed on the document with indexing notation.</div>
14     <div id='result'>FAILURE</div>
15 </body>
16 </html>
17