2010-08-21 10:52:57 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<!-- Test: if button 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('b');
|
|
|
|
e.setCustomValidity('foo');
|
|
|
|
e.removeAttribute('disabled');
|
|
|
|
document.documentElement.className='';
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="onLoadHandler();">
|
2010-08-24 21:40:31 -07:00
|
|
|
<button class='invalid' id='b' disabled></button>
|
2010-08-21 10:52:57 -07:00
|
|
|
</body>
|
|
|
|
</html>
|