gecko/layout/reftests/css-invalid/form/form-invalid-and-barred-remove-barred.html

24 lines
567 B
HTML

<!DOCTYPE html>
<!-- form with one invalid element and a barred for constraint
validation element then you remove the second element -->
<html class='reftest-wait'>
<head>
<style>
form:invalid { display: none; }
</style>
</head>
<script>
function onloadHandler()
{
document.forms[0].removeChild(document.getElementById('j'));
document.documentElement.className = '';
}
</script>
<body onload='onloadHandler();'>
<form>
<input required>
<input id='j' value='foo' readonly>
</form>
</body>
</html>