From 9edb2fb92ca5d02406142edc8443b6d3e54e8ac5 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 21 May 2005 20:29:43 +0000 Subject: [project @ 2005-05-21 20:29:43 by jmb] Remove base tags from output document as they have no meaning. svn path=/import/netsurf/; revision=1728 --- riscos/save_complete.c | 59 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/riscos/save_complete.c b/riscos/save_complete.c index db2858ac8..d6b3a41ef 100644 --- a/riscos/save_complete.c +++ b/riscos/save_complete.c @@ -54,7 +54,7 @@ static bool rewrite_url(xmlNode *n, const char *attr, const char *base); static bool save_complete_list_add(struct content *content); static struct content * save_complete_list_find(const char *url); static bool save_complete_list_check(struct content *content); - +static void save_complete_list_dump(void); /** * Save an HTML page with all dependencies. @@ -180,6 +180,8 @@ bool save_complete_html(struct content *c, const char *path, bool index) } } + /*save_complete_list_dump();*/ + /* make a copy of the document tree */ parser = htmlCreateMemoryParserCtxt(c->source_data, c->source_size); if (!parser) { @@ -500,17 +502,19 @@ bool rewrite_urls(xmlNode *n, const char *base) { xmlNode *child; + assert(n->type == XML_ELEMENT_NODE); + /** * We only need to consider the following cases: * * Attribute: Elements: * * 1) data - * 2) href + * 2) href * 3) src