1
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3
* The contents of this file are subject to the Mozilla Public
4
* License Version 1.1 (the "License"); you may not use this file
5
* except in compliance with the License. You may obtain a copy of
6
* the License at http://www.mozilla.org/MPL/
8
* Software distributed under the License is distributed on an "AS
9
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
* implied. See the License for the specific language governing
11
* rights and limitations under the License.
13
* The Original Code is this file as it was released on
16
* The Initial Developer of the Original Code is Jonas Sicking.
17
* Portions created by Jonas Sicking are Copyright (C) 2001
18
* Jonas Sicking. All Rights Reserved.
21
* Jonas Sicking <sicking@bigfoot.com> (Original Author)
23
* Alternatively, the contents of this file may be used under the
24
* terms of the GNU General Public License Version 2 or later (the
25
* "GPL"), in which case the provisions of the GPL are applicable
26
* instead of those above. If you wish to allow use of your
27
* version of this file only under the terms of the GPL and not to
28
* allow others to use your version of this file under the MPL,
29
* indicate your decision by deleting the provisions above and
30
* replace them with the notice and other provisions required by
31
* the GPL. If you do not delete the provisions above, a recipient
32
* may use your version of this file under either the MPL or the
37
#include "domstubs.idl"
39
interface nsIDOMTreeWalker;
40
interface nsIDOMNodeFilter;
43
[scriptable, uuid(400af3ca-1dd2-11b2-a50a-887ecca2e63a)]
44
// Introduced in DOM Level 2:
45
interface nsIDOMTreeWalker : nsISupports {
46
readonly attribute nsIDOMNode root;
47
readonly attribute unsigned long whatToShow;
48
readonly attribute nsIDOMNodeFilter filter;
49
readonly attribute boolean expandEntityReferences;
50
attribute nsIDOMNode currentNode;
51
// raises(DOMException) on setting
53
nsIDOMNode parentNode();
54
nsIDOMNode firstChild();
55
nsIDOMNode lastChild();
56
nsIDOMNode previousSibling();
57
nsIDOMNode nextSibling();
58
nsIDOMNode previousNode();
59
nsIDOMNode nextNode();