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

RE: DocumentTraversal

From: Jeff Winter <Jwinter@zefer.com>
Date: Tue, 10 Apr 2001 09:06:59 -0400
Message-ID: <D858C92D51ACD311AB3C009027CC87E00265BD63@zbosexchange.boston.zefer.com>
To: www-dom@w3.org


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 : Friday, 22 June 2012 06:13:48 GMT