[whatwg] Pattern Hint

On Fri, 7 Oct 2005, Matthew Raymond wrote:
> 
>    There is a certain presumption that the author doesn't want to use 
> |title| for any other purpose than providing input hints. This is 
> potentially erroneous. For instance, the |title| may describe the 
> purpose of the input rather than the input pattern. If someone is 
> inputting a credit card number, it may be to hold a reservation rather 
> than make payment, and the author may wish to communicate that via a 
> tooltip. By making the |title| the semantic method of providing pattern 
> hints, you block the web author from using tooltips for any other 
> purpose, and that's even assuming the user agent won't treat |title| as 
> a special case when applied to form controls.

I'd agree this was a problem, if authors ever used title="" in the first 
place.

But in this case that's fine. title="Your credit card number. This is 
used for reserving your flight only." is perfect conformant and good.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 7 October 2005 14:54:42 UTC