W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2003

RE: to js or not to js?

From: Jon Hanna <jon@spin.ie>
Date: Mon, 20 Jan 2003 12:19:33 -0000
To: <w3c-wai-ig@w3.org>

> > 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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:08:49 UTC