Implement nextNode(), previousNode() and detach() in NodeIterator

First patch to resolve #1235. We need more implementation for handling node removals,
and I'll implement in next patch.
This commit is contained in:
Jinwoo Song 2015-05-06 21:13:14 +09:00
parent 4e8005cd5b
commit cb2bdf1977
4 changed files with 199 additions and 2289 deletions

View file

@ -16,8 +16,8 @@ interface NodeIterator {
readonly attribute Node root;
[Pure]
readonly attribute Node? referenceNode;
// [Pure]
// readonly attribute boolean pointerBeforeReferenceNode;
[Pure]
readonly attribute boolean pointerBeforeReferenceNode;
[Constant]
readonly attribute unsigned long whatToShow;
[Constant]
@ -28,5 +28,5 @@ interface NodeIterator {
[Throws]
Node? previousNode();
// void detach();
void detach();
};