| <!DOCTYPE html> | |
| <html> | |
| <body style="visibility: hidden;"> | |
| <div style="visibility: visible;"> | |
| <p>This tests pasting (InsertHTML) into an input element when body element has visibility set to hidden. | |
| You should see PASS below.</p> | |
| <input type="text" value="FAIL"> | |
| <p><script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| var input = document.querySelector('input'); | |
| input.focus(); | |
| document.execCommand('InsertHTML', false, 'PASS'); | |
| document.write(input.value); | |
| </script></p> | |
| </div> | |
| </body> | |
| </html> |