Skip to content

WIP web input validation #888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

WIP web input validation #888

wants to merge 2 commits into from

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented May 26, 2018

Just an example 🏎

Instead of alert, report input errors in-place with nice hint highlight (it already says what can be wrong!)

  • Hostname and password regexps moved to input.pattern attribute
  • Check input when typing
  • Report errors using hint coloring + reportValidity
  • Highlight input origin panel in the menu when invalid

Edit: little example about validity thing for inputs: https://googlechrome.github.io/samples/report-validity/ (Yes, it does look really strange on android with Firefox)
Edit2: travis broke on npm package fetch :/

mcspr and others added 2 commits May 26, 2018 05:16
* Hostname and password regexps moved to input.pattern attribute
* Check input when typing
* Report errors using hint coloring + reportValidity
* Highlight input origin panel in the menu when invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants