W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: What is the meaning of the DOM ECMAScript binding?

From: Jesse McCarthy <mccarthy36@earthlink.net>
Date: Fri, 9 Nov 2001 09:01:20 -0500
To: www-dom@w3.org, neil_laurance@yahoo.co.uk
Message-ID: <MWMail.ikmlkqbe@host.none>
Neil Laurance <neil_laurance@yahoo.co.uk> wrote on 11/9/01 8:54:44 AM:
>Jesse, you are absolutely right. However, so long as NS and Microsoft state
>which object represents Document, then I see this as a faily trivial issue, for
>exampe:
>
>getBrowserType();  // some function to determine browser type based on
>navigator object
>
>var doc;
>if( browser.isNS || browser.isIE ) { doc = window.document; }
>if( browser.isNeils ) { doc = neil; }
>
>var node = doc.getElementById( 'myId' ); ......
>
>Cheers, Neil

I disagree that it is trivial.  What is the use of standards if you still have 
to write code forks to accomodate every browser known to man? 
Received on Friday, 9 November 2001 09:06:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT