Maheshjayachandran / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

When degrading, goog.ui.LabelInput shouldn't remove placeholder text when focused and empty #412

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The HTML5 spec for the placeholder attribute [1] was recently updated [2] so 
that when an input is focused and empty, the placeholder *should* be shown. 
This has been fixed in Chrome [3][4], but not Firefox yet [5]. Apparently IE10 
does this correctly [6].

Currently when degrading for browsers that do not support the placeholder 
attribute, goog.ui.LabelInput removes the placeholder text when focused and 
empty [7], so this should be fixed.

[1] http://dev.w3.org/html5/spec/Overview.html#the-placeholder-attribute
[2] http://html5.org/tools/web-apps-tracker?from=6781&to=6782
[3] https://bugs.webkit.org/show_bug.cgi?id=73629
[4] http://code.google.com/p/chromium/issues/detail?id=103025
[5] https://bugzilla.mozilla.org/show_bug.cgi?id=673873
[6] https://bugzilla.mozilla.org/show_bug.cgi?id=673873#c11
[7] 
http://code.google.com/codesearch#epIciakqvFc/trunk/closure/goog/ui/labelinput.j
s&q=labelinput%20package:http://closure-library%5C.googlecode%5C.com&l=260

Original issue reported on code.google.com by e...@google.com on 24 Jan 2012 at 4:52