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

[whatwg] type="datetime" demo

From: Jim Ley <jim.ley@gmail.com>
Date: Thu, 15 Jul 2004 16:35:33 +0100
Message-ID: <851c8d3104071508352dd03f5@mail.gmail.com>
On Thu, 15 Jul 2004 15:22:02 +0000 (UTC), Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 15 Jul 2004, Jim Ley wrote:
> > Netscape 2.0 say but there's loads of them
> Given that Netscape 2.0 has been responsible for a total of 0% of the hits
> on the WHATWG site today, I really don't think that lack of Netscape 2.0
> compatibility in this demo is of particularily great importance.

Yes, but there are positively hundreds of user agents that don't
implement getElementsByTagName which is the first thing you use
without testing.  Please read the clj faq resource quoted in the other
post for a workable approach.

> On the plus side, if the only problem 

Oh, no, I'm afraid I didn't bother commenting on the basic failure of
the script, as I've already done so in the other thread where this
approach was first suggested, the reason it fails is that you cannot
suggest a value in the input box, and provide a pattern at the same
time.   People can easily write a script that degrades appropriately
to move value out, however it doesn't degrade when you return to the

Indeed, you can even see it in the example - using IE6, if you enter
15/7/4  (todays date, you get told

The string '15/7/4' does not seem to specify a date and a time. 

You then return to the previous page using the back button, and it says this:

First date and time:  Format: 15/7/4

relying on VALUE to provide information is unsafe, I'd said before, I
didn't see the point repeating myself, as it's already been rejected
by the WHAT-WG.

Received on Thursday, 15 July 2004 08:35:33 UTC

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