
Originally Posted by
maya90
the box where it says it works in all modern browsers it doesn't work in Chrome (Version 21.0.1180.89 on mac)
(I mean functionality that box gets emptied of text on focus..)
There may be a misunderstanding going on here. The HTML5 placeholder specs don't say that the placeholder text must be emptied on focus. Here's what they do say (formatting added by me):
User agents should present this hint to the user, after having stripped line breaks from it, when the element's value is the empty string and/or the control is not focused (e.g. by displaying it inside a blank unfocused control and hiding it otherwise).
So due to the and/or situation, it's up to the browser vendors to determine whether the placeholder text is to be cleared on focus or not.
Bookmarks