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

Re: DocumentTraversal

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 9 Apr 2001 11:14:45 -0400
To: www-dom@w3.org
Message-ID: <OFBAA8DF3C.19D0B231-ON85256A29.00538991@pok.ibm.com>

>Is there a parser-independent way to obtain a DocumentTraversal interface?
>Does this imply that the class implementing the (DOM Level 2) Document is
>guaranteed to also support DocumentTraversal?

Check hasFeature to find out if the document support the Traversal APIs. If
it does, you should be able to cast the Document into a DocumentTraversal.
(Details of casting are language-dependent, but should be the same for all
implementations that share a single language binding.)

______________________________________
Joe Kesselman  / IBM Research
Received on Monday, 9 April 2001 11:15:32 GMT

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