[Owncloud] Why are we using a label in the login mask to show placeholder values?
Robin Appelman
icewind at owncloud.com
Thu Sep 27 20:51:23 UTC 2012
On Thursday 27 September 2012 21:54:56 Philip Taffner wrote:
> You should use code, which aborts if the browser has native support for
> the placeholder attribute.
>
> Example: https://github.com/mathiasbynens/jquery-placeholder
>
> More polyfills are listed here (scroll down to "Web Forms: input
> placeholder"):
>
> https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills
>
> Am 27.09.2012 18:32, schrieb Jörn Friedrich Dreyer:
> > Shouldn't we use an HTML5 placeholder attribute? and maybe
> > http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.ht
> > ml
> >
> > I'm asking because chrome prefills the dialog with my credentials which
> > causes the label to overlay the prefilled text, which looks ugly...
> >
> > so long
> >
> > Jörn
iirc, a custom placeholder was used instead of using the html5 placeholder
attribute because the native placeholder dissapears as soon as the input gets
focus. With the username field being auto focused it won't have a visible
placeholder untill it loses focus.
- Robin Appelman
More information about the Owncloud
mailing list