[whatwg] type="datetime" demo

Jim Ley jim.ley at gmail.com
Thu Aug 19 07:18:51 PDT 2004

On Thu, 19 Aug 2004 13:41:26 +0000 (UTC), Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 19 Aug 2004, Jim Ley wrote:
> >>
> >> I'm testing Node.X. Document and anyelement are both Nodes.
> >
> > No, if it was a DOM conformant UA, you would be, however it's highly
> > likely not to be, if it was, there'd be no point checking any of it.
> I'm not going to make the code even less readable just to satisfy some
> perverse desire to have this JS code run on every JS and DOM engine ever
> written in the history of man, sorry. That would defeat the purpose, which
> is to demonstrate the principle.

Oh right, so supporting legacy browsers with javascript shims is very
complicated to do, and leads to unreadable unmaintainable code?   If
that's the case, does this not lead to a huge problem for the whole
basis of the WHAT-WG's work?

> > So it fails in FireFox 0.8 for example, which incorrectly assumes
> > datetime support.
> That's a (now fixed) bug in Mozilla.

Yes, but that is irrelevant, it demonstrates that your "is it a WF2
browser check" doesn't check any such thing.  That's the problem, you
can't just sweep problems under the carpet by calling it a bug in the
UA.  We could sweep all of IE6 away if we said that.


More information about the whatwg mailing list