summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-01-28 10:02:31 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-01-28 10:02:31 +0000
commit4bd00fd2f2e1b4951be2b168261e1bc92f844c24 (patch)
tree3d8bbe3a8d8d9db8fa1091846bff0a3f7a0726ba /src/html/html_document.c
parent9def0a44e12c1469e0e4af2881242f5f1df9b3a0 (diff)
downloadlibdom-4bd00fd2f2e1b4951be2b168261e1bc92f844c24.tar.gz
libdom-4bd00fd2f2e1b4951be2b168261e1bc92f844c24.tar.bz2
Fix: Pass tag_name through to HTMLQuoteElement initialiser.
It needs to be given the tag_name, because it could have been created by a Q or BLOCKQUOTE element.
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 3d2a7f3..839cf99 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -606,7 +606,8 @@ _dom_html_document_create_element_internal(
break;
case DOM_HTML_ELEMENT_TYPE_BLOCKQUOTE:
case DOM_HTML_ELEMENT_TYPE_Q:
- exc = _dom_html_quote_element_create(html, namespace, prefix,
+ exc = _dom_html_quote_element_create(html, tag_name,
+ namespace, prefix,
(dom_html_quote_element **) result);
break;
case DOM_HTML_ELEMENT_TYPE_PRE: