mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
Use libxml functions to loop through elements in html_head() instead of checking all nodes. Remove logging.
svn path=/trunk/netsurf/; revision=10788
This commit is contained in:
parent
1391ebe5cc
commit
bce1f4c231
@ -570,11 +570,8 @@ bool html_head(struct content *c, xmlNode *head)
|
||||
xmlNode *node;
|
||||
xmlChar *s;
|
||||
|
||||
for (node = head->children; node != 0; node = node->next) {
|
||||
if (node->type != XML_ELEMENT_NODE)
|
||||
continue;
|
||||
|
||||
LOG(("Node: %s", node->name));
|
||||
for (node = xmlFirstElementChild(head); node != 0;
|
||||
node = xmlNextElementSibling(node)) {
|
||||
if (c->title == NULL && strcmp((const char *) node->name,
|
||||
"title") == 0) {
|
||||
xmlChar *title = xmlNodeGetContent(node);
|
||||
|
Loading…
Reference in New Issue
Block a user