From 61544aa440d0ef6cff10776a952a9562aa67e295 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 25 Apr 2014 13:26:04 +0300 Subject: [PATCH] Remove traversal active flag concept Does not appear to be useful, and IE/Chrome do not implement it. https://www.w3.org/Bugs/Public/show_bug.cgi?id=25412 --- Overview.src.html | 15 ++------------- dom-core.html | 15 ++------------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/Overview.src.html b/Overview.src.html index 23ead36a..19eb08c6 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -7943,10 +7943,6 @@

Traversal

to filter and traverse node trees. -

Each NodeIterator and TreeWalker object has an -associated active flag to avoid -recursive invocations. It is initially unset. -

Each NodeIterator and TreeWalker object also has an associated root node, @@ -7957,9 +7953,6 @@

Traversal

these steps:
    -
  1. If active flag is set - throw an - "InvalidStateError".

  2. Let n be node's nodeType attribute value minus 1.

  3. If the nth bit (where 0 is the least @@ -7969,10 +7962,8 @@

    Traversal

  4. If filter is null, return FILTER_ACCEPT. -

  5. Set the active flag.

  6. Let result be the return value of invoking filter. -

  7. Unset the active flag.

  8. If an exception was thrown, re-throw the exception.

  9. Return result.

@@ -8041,8 +8032,7 @@

Interface NodeIterator

As mentioned earlier NodeIterator objects have an -associated active flag, -root +associated root node, whatToShow bitmask, and filter callback as well. @@ -8152,8 +8142,7 @@

Interface TreeWalker

createTreeWalker() method.

As mentioned earlier TreeWalker objects have an -associated active flag, -root +associated root node, whatToShow bitmask, and filter callback. diff --git a/dom-core.html b/dom-core.html index ec6556bd..4cb9d620 100644 --- a/dom-core.html +++ b/dom-core.html @@ -8014,10 +8014,6 @@

7 Traversal

to filter and traverse node trees. -

Each NodeIterator and TreeWalker object has an -associated active flag to avoid -recursive invocations. It is initially unset. -

Each NodeIterator and TreeWalker object also has an associated root node, @@ -8028,9 +8024,6 @@

7 Traversal

these steps:
    -
  1. If active flag is set - throw an - "InvalidStateError".

  2. Let n be node's nodeType attribute value minus 1.

  3. If the nth bit (where 0 is the least @@ -8040,10 +8033,8 @@

    7 Traversal

  4. If filter is null, return FILTER_ACCEPT. -

  5. Set the active flag.

  6. Let result be the return value of invoking filter. -

  7. Unset the active flag.

  8. If an exception was thrown, re-throw the exception.

  9. Return result.

@@ -8112,8 +8103,7 @@

7.1 Interface <

As mentioned earlier NodeIterator objects have an -associated active flag, -root +associated root node, whatToShow bitmask, and filter callback as well. @@ -8223,8 +8213,7 @@

7.2 Interface createTreeWalker() method.

As mentioned earlier TreeWalker objects have an -associated active flag, -root +associated root node, whatToShow bitmask, and filter callback.