Blog Archive - HTML5 Features (8)


HTML5 Forms Polyfill For Old Browsers

Just a very quick post to show a cool polyfill for form validation emulation in old browsers. New input attributes like required and pattern, used in combination with CSS pseudo-class selectors make it easier to write the checks and display feedback to the user. There are other advanced validation techniques that allow you to use JavaScript to set custom validity rules and messages or to determine if an element is invalid and the reason why.

Read More