W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2003

Re: How to get an Element from DOM?

From: Curt Arnold <carnold@houston.rr.com>
Date: Fri, 13 Jun 2003 18:39:21 -0500
Message-ID: <3EEA60A9.6050809@houston.rr.com>
To: Kang Jeong-Hee <Keizi@mail.co.kr>, www-dom@w3.org

NodeList.item(0) could very easily be a character element containing
whitespace (possibly a carriage return) in which case a cast could and
should throw an exception. Check if the values of nodeType, and nodeName
match your expectations?

If you are serious about this, you might consider porting the DOM Test
suites to your implementation. Please see http://www.w3.org/DOM/Test for
more details and if you'd like to follow up please email www-dom-ts@w3.org.
Received on Friday, 13 June 2003 19:39:26 GMT

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