From 1124712760b2dbcd73c67a8e7249b85d860668fc Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Mon, 11 Aug 2008 16:27:31 +0000 Subject: [PATCH] Reset the "has_ns" flag when reparsing documents because of encoding change. (credit: jmb) svn path=/trunk/netsurf/; revision=5029 --- render/html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render/html.c b/render/html.c index 14d2d8e8d..102c00fd1 100644 --- a/render/html.c +++ b/render/html.c @@ -694,6 +694,8 @@ encoding_change: if (c->data.html.document) { xmlFreeDoc(c->data.html.document); } + c->data.html.has_ns = false; + memset(c->data.html.ns, 0, sizeof(c->data.html.ns)); /* Set up the parser, libxml2 document, and that */ if (html_create_parser(c) != 0) {