blob: 29bb4ad3099a13e6d0e3a3d6ae35f48552e60c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<!-- form with no elements and invalid element is added dynamically -->
<html>
<head>
<style>
form:invalid { display:none }
</style>
<script>
function onLoadHandler()
{
document.forms[0].appendChild(document.getElementById('i'));
document.documentElement.className='';
}
</script>
</head>
<body onload='onLoadHandler();'>
<input id='i' required>
<form>
</form>
</body>
</html>
|