Comments (9)
i fixed this locally by adding a value check on line 336:
if(element.value === "")
element.type = "text";
if i read the code right, this keeps my edit as a password field, but also adds the data-placeholder type password so that if i backspace out my password, it springs back to a clear-text input with the placeholder.
from placeholders.js.
Nice one, that's definitely a bug. If you fork the repository and commit your fix I can take a proper look at it in a pull request and merge it in to the main code base. Thanks for your help :)
from placeholders.js.
It's really valuable plugin and fix my problem in graceful way.
However I got this "type=password" problem in IE8, I saw the issue #21 and #6, it seems the issue has been fixed in IE9
Doest this issue already/will be fixed in IE8?
Thanks.
BR.
from placeholders.js.
@becoder No, there are no plans to add this functionality in IE8. As discussed in other issues, that would involve a complete change in the way the polyfill works. I do not intend to introduce new elements into the DOM, which would be the only way to do this in IE <9.
from placeholders.js.
Thanks for your prompt feedback.
I understand, IE is nightmare...
BTW, if we don't need to support IE<9, I am wondering whether it's possible to let the password box empty instead of set of dot. :)
Hope it will not impact source code a lot.
Thanks.
from placeholders.js.
I agree, probably in the case of IE8 better to leave blank then populate with text which is displayed as the dots of an existing password
from placeholders.js.
That is definitely an option, but I'm reluctant to make it a default as it would change the current behaviour. I will look at adding it as an configurable option though.
from placeholders.js.
@becoder in the end I used this project https://github.com/matoilic/jquery.placeholder because it had the specific support for password that I needed. However, the project isn't being updated as regularly so there are pros and cons - kudos to both projects.
from placeholders.js.
This is still an issue for IE 9 (9.0.812.16421) for me
My "workaround" was to use an condition comment
<!--[if gt IE 9]>
<script type="text/javascript" src="/content/js/Placeholders.min.js"></script>
<![endif]-->
because it's better to have no placeholders instead of clear-text passwords.
I am using knockouts data-bindings, and I think the problem should be related to knockoutjs (related: #59)
from placeholders.js.
Related Issues (20)
- Text-Indent glitch
- Having two fields using the same model causes one to stay placeholdery HOT 2
- Hide on input not working for IE 10 & IE 11 HOT 1
- placeholders events aren't bound on cloned inputs HOT 1
- IE8/9 Placeholders.disable() retains focus/blur event listeners HOT 1
- not removing placeholderjs css class for preloaded text fields HOT 1
- Github site went dead HOT 2
- Clear placeholder on focus
- Publish on NPM HOT 14
- ie7 input type password can not use HOT 2
- Changing placeholder text color HOT 3
- Respect input::placeholder:after css selector in IE9
- Placeholder should disappear on mouse-paste when data-placeholder-focus="false"
- Different styles for active and normal placeholder
- How to switch text off before validation and then put it back on after validation
- Does this support :placeholder-shown css selector?
- Does this support :placeholder-shown?
- [IE11] Placeholder.nativeSupport not working
- Maxlength attribute broken HOT 1
- Can we use this plugin for Angular app HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from placeholders.js.