Change back to using tree directly because element navigation functions require libxml2 2.7.3 which is not available everywhere.

svn path=/trunk/netsurf/; revision=10790
This commit is contained in:
James Bursa 2010-09-16 21:03:16 +00:00
parent 86b6535b85
commit b6418a9048
1 changed files with 4 additions and 2 deletions

View File

@ -570,8 +570,10 @@ bool html_head(struct content *c, xmlNode *head)
xmlNode *node;
xmlChar *s;
for (node = xmlFirstElementChild(head); node != 0;
node = xmlNextElementSibling(node)) {
for (node = head->children; node != 0; node = node->next) {
if (node->type != XML_ELEMENT_NODE)
continue;
if (c->title == NULL && strcmp((const char *) node->name,
"title") == 0) {
xmlChar *title = xmlNodeGetContent(node);