[whatwg] pattern-hint

Mark Schenk wrote:

> 
> I do not entirely agree that the HTML title attribute is equivalent to 
> the  XForms hint element[3], as in the following example which for 
> entering a  (customer-/tracking-)id as is often used in correspondence 
> between company  and customer:
> 
> <input type="text"
>        name="uid"
>        title="Correspondence Number"
>        pattern="some-regexp-here"
>        hint="The correspondence number is a number of the form  
> 1234-56-789" />
> 
> The title describes what the field is about and hint describes in what  
> format the data should be entered, which I think are two distinctly  
> different things.

Shouldn't that be
   <label for="corr">Correspondence Number</label><input id="corr" ... />
?

(Making the label a tooltip would be a presentational tweak.)

~fantasai

-- 
http://fantasai.inkedblade.net/contact

Received on Thursday, 8 July 2004 07:51:33 UTC