W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2005

[whatwg] Pattern Hint

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 26 Oct 2005 18:27:41 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0510261824490.6813@dhalsim.dreamhost.com>
On Mon, 17 Oct 2005, Matthew Raymond wrote:
> Ian Hickson wrote:
> > On Sat, 8 Oct 2005, Matthew Raymond wrote:
> >>My argument isn't that |title| can't contain pattern hints. What I 
> >>object to is designing HTML5 so that |title| is the only thing that 
> >>can be used for pattern hints on legacy browsers.
> > 
> > I don't understand why you think it is the only thing that can be used 
> > for pattern hints (on any browser, legacy or otherwise).
> 
> Take your demo for example. Suppose you want both pattern hints and 
> tooltips in the legacy code. In that case, you'd want the code to 
> degrade to something like this for an HTML 4.01 user agent:
> 
> | <input id="t1" name="t1" title="Enter the first date here.">
> | format: DD/MM/YYYY HH:MM

That's a date field. pattern="" doesn't apply to those.

For other fields, I don't see the problem. Just put the format in the 
tooltip as well.


> [<altinput>]

I think we've already discussed this to death. :-)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 26 October 2005 11:27:41 UTC

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