<!DOCTYPE html>
<input>
<script>
const input = document.querySelector('input');
input.setCustomValidity('foo'.repeat(100));
input.reportValidity();
</script>
<!DOCTYPE html>
<input>
<script>
const input = document.querySelector('input');
input.setCustomValidity('foo'.repeat(100));
input.reportValidity();
</script>