From a8bc5d391660a3129775a8b72cc4182b35d7b261 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 31 Jan 2011 23:14:13 +0000 Subject: Fix :root detection svn path=/trunk/netsurf/; revision=11571 --- css/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'css/select.c') diff --git a/css/select.c b/css/select.c index 9dab7e10e..1f65ab0d4 100644 --- a/css/select.c +++ b/css/select.c @@ -1292,7 +1292,8 @@ css_error node_is_root(void *pw, void *node, bool *match) { xmlNode *n = node; - *match = (n->parent == NULL); + *match = (n->parent == NULL || + n->parent->type == XML_HTML_DOCUMENT_NODE); return CSS_OK; } -- cgit v1.2.3