Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I need to implement IE 10 hack on Password field textbox.
thanks!
you’re welcome!
I wasn’t aware that IE10 needed hacking.
Openings post doesn’t give much info why either :P
I think it might relate to the ‘eye’ thing…at least that’s what I can gather from StackOverflow
If that’s the case there are better solutions posted in those links than using a hack.
If you want to remove the reveal pseudo element, use CSS:
::-ms-reveal {
display: none;
}
I covered this, and other pseudo elements, in [Designing with Pseudo Elements in IE10](http://sampsonblog.com/615/ie10s-pseudo-elements).
On topic, is there any way to sniff this `::-ms-reveal` pseudo-element with JavaScript to detect Internet Explorer 10+?
Still searching for hacks for Browserhacks.com. :)
Well, I guess that’s clever. I have to try this out. I’ll let you know asap.
Doesn’t work on BrowserStack.com; setup Windows 8, IE 10, 1024*768.
http://codepen.io/HugoGiraudel/pen/26c6e0b79723ff562a4d10b4a0d094a7
Thanks buddy. Hack successful. Pushing it to Browserhacks anytime soon.
But… it’s not really a hack, is it? :)
Well, it kind of is. Actually it really depends on how would you define a CSS hack.
If a hack is using something not on its principal purpose, then the following snippet definitely is one:
_::-ms-reveal, .selector { }
This doesn’t aim at styling the eye-input pseudo-element but the .selector element only for browsers which understand the eye-input pseudo-element. So ::-ms-reveal acts as a filter, not as a regular CSS selector.
It’s a pseudo class isn’t it, so it’s not a hack to use it.
Pseudo-element: http://msdn.microsoft.com/fr-FR/library/windows/apps/hh465773.aspx.