Add implementation for HTML Node Iterator

This, along with Tree Walker, will replace the Tree Enumerator.
https://dom.spec.whatwg.org/#interface-nodeiterator
This commit is contained in:
iska
2015-05-28 00:34:17 +02:00
parent 7892a925c8
commit 45156d98fd
4 changed files with 178 additions and 10 deletions
+10 -10
View File
@@ -13,19 +13,19 @@ typedef NS_ENUM(unsigned short, HTMLNodeFilterValue)
HTMLNodeFilterAccept = 1,
HTMLNodeFilterReject = 2,
HTMLNodeFilterSkip = 3
} HTMLNodeFilterValue;
};
typedef NS_ENUM(unsigned long, HTMLNodeFilterShowOptions)
{
HTMLNodeFilterShowAll = 0xFFFFFFFF;
HTMLNodeFilterShowElement = 0x1;
HTMLNodeFilterShowText = 0x4;
HTMLNodeFilterShowProcessingInstruction = 0x40;
HTMLNodeFilterShowComment = 0x80;
HTMLNodeFilterShowDocument = 0x100;
HTMLNodeFilterShowDocumentType = 0x200;
HTMLNodeFilterShowDocumentFragment = 0x400;
} HTMLNodeFilterShowOptions;
HTMLNodeFilterShowAll = 0xFFFFFFFF,
HTMLNodeFilterShowElement = 0x1,
HTMLNodeFilterShowText = 0x4,
HTMLNodeFilterShowProcessingInstruction = 0x40,
HTMLNodeFilterShowComment = 0x80,
HTMLNodeFilterShowDocument = 0x100,
HTMLNodeFilterShowDocumentType = 0x200,
HTMLNodeFilterShowDocumentFragment = 0x400
};
@class HTMLNode;