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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:11 UTC