22 lines
460 B
HTML
22 lines
460 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
var input = document.createElement('input');
|
|
|
|
var script = document.createElement('script');
|
|
script.textContent = 'document.currentScript.parentNode.remove()';
|
|
|
|
var container = document.createElement('div');
|
|
container.appendChild(script);
|
|
container.appendChild(input);
|
|
|
|
document.body.appendChild(container);
|
|
document.body.innerHTML = 'PASS';
|
|
</script>
|
|
</body>
|
|
</html>
|