Skip to content
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

How does this differ from https://github.com/mathiasbynens/jquery-placeholder? #54

Closed
builtbylane opened this issue Aug 23, 2013 · 1 comment

Comments

@builtbylane
Copy link
Contributor

How does this differ from https://github.com/mathiasbynens/jquery-placeholder?

I only ask because jquery-placeholder is conveniently available on cdnjs.com and so I am about to use that one.

Sorry if this is an obnoxious question, it's not meant to be.

Thanks

@ginader
Copy link
Owner

ginader commented Aug 23, 2013

Hi @builtbylane :-)
Don't worry — your question is perfectly valid! There's quite a few placeholder polyfills out there and they all kinda do the same thing.
The main differences this implementation has are:

  1. the placeholders are accessible to Screenreader users {visibleToScreenreaders : true}
  2. the placeholders can behave like in i.e. Chrome where they only disappear when the user starts typing rather than on focus (which is also a neat accessibility/usability feature) {hideOnFocus : false}
  3. the way it nicely integrates with modernizr/yepnope so it doesn't has to be loaded at all when the Browser has native support

Hope it helps! :-)

@ginader ginader closed this as completed Aug 23, 2013
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

No branches or pull requests

2 participants