| <head> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| </script> | |
| </head> | |
| <body> | |
| <div>This text should NOT be visible, because JavaScript should replace it.</div> | |
| <canvas> | |
| This text should NOT be visible if JavaScript is enabled. | |
| <script> | |
| document.getElementsByTagName("div")[0].innerText = "This text was set by a script inside a canvas element. " | |
| + "Such scripts run even though the content is not displayed." | |
| </script> | |
| </canvas> | |
| </body> |