-
Committer:
Gary Poster
-
Date:
2012-11-01 11:13:45 UTC
-
mfrom:
(208.1.3 placeholder)
-
Revision ID:
gary.poster@canonical.com-20121101111345-1y7m744pe6otgwq0
Change charm search to use HTML5 placeholder
CSS does not allow you to specify a selector for a dynamic empty (or not empty) field value. The two approaches around it I found are JS and required/:valid. I chose required/:valid because it required no JS and seemed simpler. However, this required a CSS workaround: bootstrap wants to highlight focused invalid fields with a red glow. I changed this to have the usual blue glow in the case of this one field.
R=bac, benjamin.saller
CC=
https://codereview.appspot.com/6816046