[whatwg] type="datetime" demo

On Sat, 17 Jul 2004, Jim Ley wrote:

> Another quick look on the code:
> 
> if (!document ...
> 
> Will still error if document doesn't exist.  use typeof on a naked property.

Fixed.


> I don't personally agree that document.X implies anyelement.X and you

I'm testing Node.X. Document and anyelement are both Nodes.


> also need to check parentNode is an object before calling removeChild

Not in this case, since the object is guarenteed to be in the tree.


> You don't check for support of Number.toFixed

That's standard ECMAScript.


> You don't check for native support of a datetime control.

Yes, I do.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 17 August 2004 11:14:13 UTC