blob: fea0c79ae212ff98d7eea5d8bc132122b2088e8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<!-- input in nested fieldset becomes barred -->
<html class='reftest-wait'>
<head>
<style>
fieldset:valid { background-color: green; }
fieldset:invalid { background-color: red; }
</style>
</head>
<script>
function onloadHandler()
{
document.getElementById('i').readOnly = true;
document.documentElement.className = '';
}
</script>
<body onload='onloadHandler();'>
<fieldset>
<fieldset>
<input id='i' required>
</fieldset>
</fieldset>
</body>
</html>
|