Commit 7d333f20 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

HtmlParser: Collect scripts URI as well

parent 8dcaa084
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment