Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<style>:invalid { color: red; }</style>
<form id="theForm"></form>
<button id="button" form="theForm">
<script>
window.onload = function() {
button.setCustomValidity("foo");
document.body.remove();
}
</script>