From 05fc8f516978c50261d46778633fd74240d20326 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Fri, 21 Sep 2007 11:05:40 +0200 Subject: [PATCH] Fix compilation with --disable-css. Compilation failed due to missing DEBUG_CSS test. This was introduced in commit 98260f7970bcd940f2d2146ac7b5a980a7586082 --- src/document/html/parser/stack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/document/html/parser/stack.c b/src/document/html/parser/stack.c index 91438805..d5c43b78 100644 --- a/src/document/html/parser/stack.c +++ b/src/document/html/parser/stack.c @@ -151,8 +151,9 @@ html_stack_dup(struct html_context *html_context, enum html_element_mortality_ty if (ep->attr.title) e->attr.title = stracpy(ep->attr.title); if (ep->attr.select) e->attr.select = stracpy(ep->attr.select); +#ifdef CONFIG_CSS e->attr.id = e->attr.class = NULL; - +#endif /* We don't want to propagate these. */ /* XXX: For sure? --pasky */ e->attr.onclick = e->attr.ondblclick = e->attr.onmouseover = e->attr.onhover