We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393c191 commit 44deb24Copy full SHA for 44deb24
TFHpple.m
@@ -64,7 +64,12 @@ - (id) initWithHTMLData:(NSData *)theData
64
// Returns all elements at xPath.
65
- (NSArray *) search:(NSString *)xPathOrCSS
66
{
67
- NSArray * detailNodes = PerformHTMLXPathQuery(data, xPathOrCSS);
+ NSArray * detailNodes;
68
+ if (isXML) {
69
+ detailNodes = PerformXMLXPathQuery(data, xPathOrCSS);
70
+ } else {
71
+ detailNodes = PerformHTMLXPathQuery(data, xPathOrCSS);
72
+ }
73
74
NSMutableArray * hppleElements = [NSMutableArray array];
75
for (id node in detailNodes)
0 commit comments