2010-08-21 10:52:57 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<!-- Test: if input is disabled and invalid, it is barred from constraint
|
|
|
|
validation and should not be affected by :invalid pseudo-class. -->
|
2010-08-24 21:40:31 -07:00
|
|
|
<link rel='stylesheet' type='text/css' href='style.css'>
|
2010-08-21 10:52:57 -07:00
|
|
|
<script>
|
|
|
|
function onLoadHandler()
|
|
|
|
{
|
|
|
|
var e = document.getElementById('i');
|
|
|
|
e.setCustomValidity('foo');
|
|
|
|
e.disabled = 'true';
|
|
|
|
document.documentElement.className='';
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="onLoadHandler();">
|
2010-08-24 21:40:31 -07:00
|
|
|
<input class='notinvalid' id='i'>
|
2010-08-21 10:52:57 -07:00
|
|
|
</body>
|
|
|
|
</html>
|