summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-01-28 10:08:42 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-01-28 10:08:42 +0000
commit809a7dcd1c803065eeb8ea39a605b6e0e2ec5241 (patch)
tree3d8bbe3a8d8d9db8fa1091846bff0a3f7a0726ba
parent9def0a44e12c1469e0e4af2881242f5f1df9b3a0 (diff)
parent4bd00fd2f2e1b4951be2b168261e1bc92f844c24 (diff)
downloadlibdom-809a7dcd1c803065eeb8ea39a605b6e0e2ec5241.tar.gz
libdom-809a7dcd1c803065eeb8ea39a605b6e0e2ec5241.tar.bz2
Merge branch 'tlsa/html-element-type'
-rw-r--r--src/html/html_document.c3
-rw-r--r--src/html/html_quote_element.c10
-rw-r--r--src/html/html_quote_element.h4
3 files changed, 9 insertions, 8 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:
diff --git a/src/html/html_quote_element.c b/src/html/html_quote_element.c
index 988ef5b..17961c0 100644
--- a/src/html/html_quote_element.c
+++ b/src/html/html_quote_element.c
@@ -32,7 +32,7 @@ static struct dom_element_protected_vtable _protect_vtable = {
* \return DOM_NO_ERR on success, appropriate dom_exception on failure.
*/
dom_exception _dom_html_quote_element_create(struct dom_html_document *doc,
- dom_string *namespace, dom_string *prefix,
+ dom_string *tag_name, dom_string *namespace, dom_string *prefix,
struct dom_html_quote_element **ele)
{
struct dom_node_internal *node;
@@ -46,7 +46,8 @@ dom_exception _dom_html_quote_element_create(struct dom_html_document *doc,
node->base.vtable = &_dom_html_element_vtable;
node->vtable = &_protect_vtable;
- return _dom_html_quote_element_initialise(doc, namespace, prefix, *ele);
+ return _dom_html_quote_element_initialise(doc, tag_name,
+ namespace, prefix, *ele);
}
/**
@@ -57,12 +58,11 @@ dom_exception _dom_html_quote_element_create(struct dom_html_document *doc,
* \return DOM_NO_ERR on success, appropriate dom_exception on failure.
*/
dom_exception _dom_html_quote_element_initialise(struct dom_html_document *doc,
- dom_string *namespace, dom_string *prefix,
+ dom_string *tag_name, dom_string *namespace, dom_string *prefix,
struct dom_html_quote_element *ele)
{
return _dom_html_element_initialise(doc, &ele->base,
- doc->elements[DOM_HTML_ELEMENT_TYPE_Q],
- namespace, prefix);
+ tag_name, namespace, prefix);
}
/**
diff --git a/src/html/html_quote_element.h b/src/html/html_quote_element.h
index a8bfbb2..ee79ee1 100644
--- a/src/html/html_quote_element.h
+++ b/src/html/html_quote_element.h
@@ -20,12 +20,12 @@ struct dom_html_quote_element {
/* Create a dom_html_quote_element object */
dom_exception _dom_html_quote_element_create(struct dom_html_document *doc,
- dom_string *namespace, dom_string *prefix,
+ dom_string *tag_name, dom_string *namespace, dom_string *prefix,
struct dom_html_quote_element **ele);
/* Initialise a dom_html_quote_element object */
dom_exception _dom_html_quote_element_initialise(struct dom_html_document *doc,
- dom_string *namespace, dom_string *prefix,
+ dom_string *tag_name, dom_string *namespace, dom_string *prefix,
struct dom_html_quote_element *ele);
/* Finalise a dom_html_quote_element object */