Yes, rubble is quite right. With the JS method being so common, I sometimes find myself getting no search results for "Search this sitemykeyword" because developers ignore the principle that whatever is removed by JS should have been added by JS. At least the HTML5 method avoids this kind of problem.
Regarding poes's comment, Mozilla and Chrome annoyed me (with my user's hat on) when they decided that the attribute value should stay visible until you type. It does indeed feel very like being presented with a JS placeholder instead.
On the rare occasion of using a placeholder in lieu of keeping the label on-screen, I add something like this:
Code:
input::-moz-placeholder {color: #222; opacity: 1;}
input:focus::-moz-placeholder {color: #888;}
This fades on focus, then disappears when typing, which I like. Colours are just examples. Webkit code is much the same, but without opacity. The opacity is necessary to override the colour in Firefox (which is dumb). And speaking of dumb, why did Mozilla omit backward compatibility when switching from pseudo-class to pseudo-element syntax recently? I bet that a lot of placeholder colours remain broken because of this, and the default colour is far too pale.
Bookmarks