[whatwg] Pattern Hint

Ian Hickson ian at hixie.ch
Wed Oct 26 11:27:41 PDT 2005


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list