haikuwebkit/LayoutTests/fast/forms/assert-on-input-type-change...

20 lines
393 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>This tests that we manage input type change properly.</title>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function runTest() {
var item = document.getElementById("foobar");
item.type = 'image';
item.alt="foobar";
}
</script>
<body onload="runTest();">
PASS if no assert in debug.
<input id=foobar type="text">
</body>
</html>