HtmlParser: Collect scripts URI as well

This commit is contained in:
Tatsuhiro Tsujikawa 2013-09-19 01:19:35 +09:00
parent 8dcaa08405
commit 7d333f202a
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ void start_element_func
free(u);
}
}
} else if(util::strieq(reinterpret_cast<const char*>(name), "img")) {
} else if(util::strieq(reinterpret_cast<const char*>(name), "img") ||
util::strieq(reinterpret_cast<const char*>(name), "script")) {
const char *src_attr = get_attr(attrs, "src");
if(src_attr) {
xmlChar *u = xmlBuildURI(reinterpret_cast<const xmlChar*>(src_attr),