We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Placeholders.js code accesses maxlength attribute using the object notation in the showPlaceholder:
maxlength
showPlaceholder
if ( !maxLength ) { elem.setAttribute(ATTR_MAXLENGTH, elem.maxLength); elem.removeAttribute('maxLength'); }
The code is case sensitive and fetches attribute value as undefined if it's named in some other manner like maxlength or MAXLENGTH (at least for IE8).
undefined
MAXLENGTH
The undefined value is then written back in the hidePlaceholder.
hidePlaceholder
The text was updated successfully, but these errors were encountered:
jamesallardice#106 Fix maxLength undefined value
3054455
Pull request #107 .
Sorry, something went wrong.
No branches or pull requests
Placeholders.js code accesses
maxlength
attribute using the object notation in theshowPlaceholder
:The code is case sensitive and fetches attribute value as
undefined
if it's named in some other manner likemaxlength
orMAXLENGTH
(at least for IE8).The
undefined
value is then written back in thehidePlaceholder
.The text was updated successfully, but these errors were encountered: