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>
Message-ID: <NDBBLCBLIMDOPKMOPHLHEEJLEMAA.jon@spin.ie>

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:08 GMT