Watermark spec

Watermark spec


Hi,
there's been a lot of discussion on the Watermark wiki page. I'd like
to get some feedback on my last comment:
http://jqueryui.pbwiki.com/Watermark#comment1239033621
How about...
Use the placeholder-option when specified, otherwise use the
placeholder-attribute, if available, otherwise do nothing. The
placeholder-option can be plain text, or a callback. The callback is
called for each element when displaying the watermark and can return
the title-attribute, or get the label, or whatever you want.
That would build upon the html5 feature by default, while maximal
flexibility in choosing other sources.
If we agree on this approach, I'd create the dev-branch and
implementation and demos sometime very soon.
Jörn