2010-08-21 10:52:57 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<!-- Test: if select is not disabled and invalid, it is candidate for
|
|
|
|
constraint validation and should 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('s');
|
|
|
|
e.setCustomValidity('foo');
|
|
|
|
e.removeAttribute('disabled');
|
|
|
|
document.documentElement.className='';
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="onLoadHandler();">
|
2010-08-24 21:40:31 -07:00
|
|
|
<select class='invalid' id='s' disabled></select>
|
2010-08-21 10:52:57 -07:00
|
|
|
</body>
|
|
|
|
</html>
|