blob: 5b3f288fba7accc19dcc7eb5b7266dc57cc0d232 [file] [log] [blame]
anderscac86bc242006-08-15 00:59:42 +00001/*
darin@apple.come4f9a662008-02-08 10:35:20 +00002 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
weinigcd7c0b32006-09-07 22:06:21 +00003 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
anderscac86bc242006-08-15 00:59:42 +00004 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
ddkilzerc8eccec2007-09-26 02:29:57 +000017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
anderscac86bc242006-08-15 00:59:42 +000019 */
20
21module traversal {
22
weinigcd7c0b32006-09-07 22:06:21 +000023 // Introduced in DOM Level 2:
eric@webkit.orgeb5cef42008-10-24 23:46:30 +000024 interface [
haraken@chromium.org72b14d62012-02-04 10:12:47 +000025 JSCustomMarkFunction
eric@webkit.orgeb5cef42008-10-24 23:46:30 +000026 ] NodeIterator {
anderscac86bc242006-08-15 00:59:42 +000027 readonly attribute Node root;
28 readonly attribute unsigned long whatToShow;
timothy@apple.com754474e2008-10-07 21:49:55 +000029 readonly attribute NodeFilter filter;
anderscac86bc242006-08-15 00:59:42 +000030 readonly attribute boolean expandEntityReferences;
31 readonly attribute Node referenceNode;
32 readonly attribute boolean pointerBeforeReferenceNode;
weinigac936282006-09-29 20:29:16 +000033
abarth@webkit.orge640c842010-04-27 20:55:11 +000034 [CallWith=ScriptState] Node nextNode()
anderscac86bc242006-08-15 00:59:42 +000035 raises (DOMException);
abarth@webkit.orge640c842010-04-27 20:55:11 +000036 [CallWith=ScriptState] Node previousNode()
anderscac86bc242006-08-15 00:59:42 +000037 raises (DOMException);
38 void detach();
39 };
anderscac86bc242006-08-15 00:59:42 +000040
weinigac936282006-09-29 20:29:16 +000041}