Thanks. But are you saying that this is by convention? I can't find anything in the standard that guarantees that such a cast will always work, i.e., the class that implements Document will also implement DocumentTraversal. >>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.)Received on Tuesday, 10 April 2001 09:05:14 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:52 GMT