W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] pattern-hint

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 08 Jul 2004 16:51:33 +0200
Message-ID: <40ED5F75.9090308@inkedblade.net>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC