1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/traversal/nsIDOMNodeIterator.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(a86bdac9-ff89-4c94-8160-4fe86733bab8)] 1.15 +// Introduced in DOM Level 2, updated to DOM Level 4: 1.16 +interface nsIDOMNodeIterator : nsISupports 1.17 +{ 1.18 + readonly attribute nsIDOMNode root; 1.19 + readonly attribute unsigned long whatToShow; 1.20 + readonly attribute nsIDOMNodeFilter filter; 1.21 + nsIDOMNode nextNode() 1.22 + raises(DOMException); 1.23 + nsIDOMNode previousNode() 1.24 + raises(DOMException); 1.25 + void detach(); 1.26 + 1.27 + // WebKit extensions, convenient for debugging. 1.28 + readonly attribute nsIDOMNode referenceNode; 1.29 + readonly attribute boolean pointerBeforeReferenceNode; 1.30 +};