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 UTC

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