/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsISupports.idl"
webidl Node;
// Note: the iterator does not handle DOM mutations gracefully. So if // the underlying DOM we are iterating over is changed, the behavior // of the walker is undefined. (With the current implementation we // cache the siblings of the current node and this list is not updated // when a mutation occurs).
// By default the walker skips document nodes from the iteration, // by setting this flag to true this behavior can be altered.
attribute boolean showDocumentsAsNodes;
void init(in Node aRoot);
// Methods and attributes that look like TreeWalker. // Note: normally parentNode cannot go further up on the tree once it reached // the root, but setting currentNode does not have this limitation. If currentNode // is set to a node that does not have the root as its ancestor the walk can be // continued from there, and once we reach a node that is 'under' the root, the // limitation for the parentNode will work again.
readonly attribute Node root;
attribute Node currentNode;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.