A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Forms: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(Created page with 'This page collects feedback on what does not work with HTML forms. Having wider adoption of standard form controls benefits usability/accessibility so it is important that they w...')
 
No edit summary
Line 3: Line 3:
== UI ==
== UI ==


* If more than one field is invalid a message is only displayed for the first field in contemporary implementations.
=== Input Validation ===
* The tooltips displayed by contemporary implementations are not liked by all designers and therefore HTML forms are sometimes avoided.


Examples: ...
The bubble error message tooltips displayed by contemporary implementations do not offer enough flexibility in layout and therefore HTML form validation is slow to reach wider adoption. Despite the many benefits of having native form input validation, many sites still rely on fallbacks and polyfills to author custom designs.


[[Category:Proposals]]
Currently, HTML input validation messages are displayed as bubble tootlips only:
 
[[File: http://girliemac.com/blog/wp-content/uploads/2011/11/form-validation-required.png]]
 
Existing webkit pseudo-elements for styling are limited in scope and do not meet use case requirements:
 
::-webkit-validation-bubble
::-webkit-validation-bubble-arrow-clipper
::-webkit-validation-bubble-arrow
::-webkit-validation-bubble-message
 
==== Use Cases ====
 
'''Requirement Use Case 1 - Inline Message'''
 
Allow error messages to be inserted immediately after the input field.
 
''Example'':
 
[[File: http://www.deque.com/wbcntnt928/wp-content/dquploads/sign-up-form-inline-error-messages.gif]]
 
'''Requirement Use Case 2 - All Messages Shown'''
 
Allow all messages to be displayed at once for each invalid input field.
 
''Example'':
 
[[File: http://www.imagescript.com/atg/articles/images/foreach_error_messages.gif]]
 
'''Requirement Use Case 3 - Grouped Messages'''
 
Allow the error messages to be grouped for all error messages shown.
 
''Example'':
 
[[File: http://graphicdesignjunction.com/wp-content/uploads/2012/01/validator-js-javascript-form-validation.jpg]]

Revision as of 18:40, 18 May 2012

This page collects feedback on what does not work with HTML forms. Having wider adoption of standard form controls benefits usability/accessibility so it is important that they work nicely.

UI

Input Validation

The bubble error message tooltips displayed by contemporary implementations do not offer enough flexibility in layout and therefore HTML form validation is slow to reach wider adoption. Despite the many benefits of having native form input validation, many sites still rely on fallbacks and polyfills to author custom designs.

Currently, HTML input validation messages are displayed as bubble tootlips only:

File:Http://girliemac.com/blog/wp-content/uploads/2011/11/form-validation-required.png

Existing webkit pseudo-elements for styling are limited in scope and do not meet use case requirements:

-webkit-validation-bubble
-webkit-validation-bubble-arrow-clipper
-webkit-validation-bubble-arrow
-webkit-validation-bubble-message

Use Cases

Requirement Use Case 1 - Inline Message

Allow error messages to be inserted immediately after the input field.

Example:

File:Http://www.deque.com/wbcntnt928/wp-content/dquploads/sign-up-form-inline-error-messages.gif

Requirement Use Case 2 - All Messages Shown

Allow all messages to be displayed at once for each invalid input field.

Example:

File:Http://www.imagescript.com/atg/articles/images/foreach error messages.gif

Requirement Use Case 3 - Grouped Messages

Allow the error messages to be grouped for all error messages shown.

Example:

File:Http://graphicdesignjunction.com/wp-content/uploads/2012/01/validator-js-javascript-form-validation.jpg