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