https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 911cbbe29295531eb38fd36ec154c6f07a1e0133 authored by ffxbld on 09 February 2016, 23:00:52 UTC
Added FENNEC_44_0_2_RELEASE FENNEC_44_0_2_BUILD2 tag(s) for changeset 0f5e5278a10a. DONTBUILD CLOSED TREE a=release
Tip revision: 911cbbe
button-type-barred.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if a button has is candidate for constraint validation then change
             its type to be barred from constraint validation, it should not be
             affected by :invalid pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function onLoadHandler()
    {
      var b = document.getElementById('b');
      b.setCustomValidity('foo');
      b.type = 'button';
      document.documentElement.className='';
    }
  </script>
  <body onload="document.getElementById('b').type='button'; document.documentElement.className='';">
    <button class='notinvalid' type='submit' id='b'></button>
  </body>
</html>
back to top