RE: to js or not to js?

> > It's important to note that we already know that all javascript browsers
> > have a document object. Otherwise we'd have to test if(document) first.
>
> That assumption is actually unwarranted... (although the only definitive
> counter example I can come up with are SVG viewers not HTML ones)
> window.document (which is the same as just document) is not in
> any standard,
> it can't really be relied upon.

I'd be happy enough using it in practice. I do agree that it's a bit chancy,
which is why I mentioned the assumption in the first place. However I've
never come accross a web browser (HTML) that didn't have a document object
in the global namespace.

Received on Monday, 20 January 2003 07:19:56 UTC