Fetch all <link hrefs>, rather than just stylesheets
Necessary because xpath is case-sensitive, and we can't be certain of the case of the rel parameter (eg: rel="stylesheet" vs rel="Stylesheet")
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | #import "ASIWebPageRequest.h" | 10 | #import "ASIWebPageRequest.h" |
11 | #import "ASINetworkQueue.h" | 11 | #import "ASINetworkQueue.h" |
12 | 12 | ||
13 | -static xmlChar *xpathExpr = (xmlChar *)"//link[@rel = \"stylesheet\"]/@href|//script/@src|//img/@src|//frame/@src|//iframe/@src|//*/@style"; | 13 | +static xmlChar *xpathExpr = (xmlChar *)"//link/@href|//script/@src|//img/@src|//frame/@src|//iframe/@src|//*/@style"; |
14 | 14 | ||
15 | static NSLock *xmlParsingLock = nil; | 15 | static NSLock *xmlParsingLock = nil; |
16 | static NSMutableArray *requestsUsingXMLParser = nil; | 16 | static NSMutableArray *requestsUsingXMLParser = nil; |
-
Please register or login to post a comment