Add HTML Node methods for selecting elements with given CSS Selectors

This commit is contained in:
iska
2015-10-23 22:49:25 +02:00
parent 6af01a1214
commit 95ffccf67b
2 changed files with 29 additions and 6 deletions
+4
View File
@@ -38,6 +38,7 @@ typedef NS_ENUM(unsigned short, HTMLDocumentPosition)
@class HTMLDocument;
@class HTMLElement;
@class CSSSelector;
@interface HTMLNode : NSObject <NSCopying>
@@ -121,6 +122,9 @@ typedef NS_ENUM(unsigned short, HTMLDocumentPosition)
- (HTMLNodeIterator *)nodeIteratorWithShowOptions:(HTMLNodeFilterShowOptions)showOptions
filterBlock:(HTMLNodeFilterValue (^)(HTMLNode *node))filter;
- (HTMLElement *)firstElementMatchingSelector:(CSSSelector *)selector;
- (NSArray<HTMLElement *> *)elementsMatchingSelector:(CSSSelector *)selector;
- (NSString *)treeDescription;
@end