jamesallardice / Placeholders.js

A JavaScript polyfill for the HTML5 placeholder attribute
http://jamesallardice.github.io/Placeholders.js
948 stars 232 forks source link

Feature: Add option to use polyfill over native support #98

Closed kurtfm closed 9 years ago

kurtfm commented 9 years ago

This change would allow you to set a global property, using the same method for the other options, to always use the placeholder logic from the polyfill.

usage: <html data-placeholder-usenative="false" ...>

polyfill logic will always be used.

Why do this? Even though IE supports placeholder the UX is inconsistent with the other browsers. Particularly, in IE when you focus in the input the placeholder is no longer shown vs other browsers show until some value is inputted.

kurtfm commented 9 years ago

Apologies, the more I test this the more it looks like it's not going to work as expected. IE is still inconsistent and this doesn't seem to help.