dom/interfaces/traversal/nsIDOMTreeWalker.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/traversal/nsIDOMTreeWalker.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "domstubs.idl"
    1.11 +
    1.12 +interface nsIDOMNodeFilter;
    1.13 +
    1.14 +[scriptable, uuid(c4ffa159-237c-4dde-b0ba-20b9f9270cf6)]
    1.15 +// Introduced in DOM Level 2:
    1.16 +interface nsIDOMTreeWalker : nsISupports {
    1.17 +  readonly attribute nsIDOMNode       root;
    1.18 +  readonly attribute unsigned long    whatToShow;
    1.19 +  readonly attribute nsIDOMNodeFilter filter;
    1.20 +           attribute nsIDOMNode       currentNode;
    1.21 +                                        // raises(DOMException) on setting
    1.22 +
    1.23 +  nsIDOMNode         parentNode();
    1.24 +  nsIDOMNode         firstChild();
    1.25 +  nsIDOMNode         lastChild();
    1.26 +  nsIDOMNode         previousSibling();
    1.27 +  nsIDOMNode         nextSibling();
    1.28 +  nsIDOMNode         previousNode();
    1.29 +  nsIDOMNode         nextNode();
    1.30 +};

mercurial