summaryrefslogtreecommitdiff
path: root/src/html/html_tablecaption_element.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-01-28 14:14:34 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-01-28 14:14:34 +0000
commitbab3f35ff01a5825034d23424b8e3866cb6376e7 (patch)
tree1cbd1b3bbd42cb5d06180783461edf89088f6853 /src/html/html_tablecaption_element.c
parent809a7dcd1c803065eeb8ea39a605b6e0e2ec5241 (diff)
downloadlibdom-bab3f35ff01a5825034d23424b8e3866cb6376e7.tar.gz
libdom-bab3f35ff01a5825034d23424b8e3866cb6376e7.tar.bz2
Simplified consistant interface to HTMLElement creation.
Also fixes STYLE element not getting the correct namespace or prefix.
Diffstat (limited to 'src/html/html_tablecaption_element.c')
-rw-r--r--src/html/html_tablecaption_element.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/html/html_tablecaption_element.c b/src/html/html_tablecaption_element.c
index ddb2d5c..5a4b1b1 100644
--- a/src/html/html_tablecaption_element.c
+++ b/src/html/html_tablecaption_element.c
@@ -27,12 +27,12 @@ static struct dom_element_protected_vtable _protect_vtable = {
/**
* Create a dom_html_table_caption_element object
*
- * \table_caption doc The document object
- * \table_caption ele The returned element object
+ * \param params The html element creation parameters
+ * \param ele The returned element object
* \return DOM_NO_ERR on success, appropriate dom_exception on failure.
*/
-dom_exception _dom_html_table_caption_element_create(struct dom_html_document *doc,
- dom_string *namespace, dom_string *prefix,
+dom_exception _dom_html_table_caption_element_create(
+ struct dom_html_element_create_params *params,
struct dom_html_table_caption_element **ele)
{
struct dom_node_internal *node;
@@ -46,23 +46,21 @@ dom_exception _dom_html_table_caption_element_create(struct dom_html_document *d
node->base.vtable = &_dom_html_element_vtable;
node->vtable = &_protect_vtable;
- return _dom_html_table_caption_element_initialise(doc, namespace, prefix, *ele);
+ return _dom_html_table_caption_element_initialise(params, *ele);
}
/**
* Initialise a dom_html_table_caption_element object
*
- * \table_caption doc The document object
- * \table_caption ele The dom_html_table_caption_element object
+ * \param params The html element creation parameters
+ * \param ele The dom_html_table_caption_element object
* \return DOM_NO_ERR on success, appropriate dom_exception on failure.
*/
-dom_exception _dom_html_table_caption_element_initialise(struct dom_html_document *doc,
- dom_string *namespace, dom_string *prefix,
+dom_exception _dom_html_table_caption_element_initialise(
+ struct dom_html_element_create_params *params,
struct dom_html_table_caption_element *ele)
{
- return _dom_html_element_initialise(doc, &ele->base,
- doc->elements[DOM_HTML_ELEMENT_TYPE_CAPTION],
- namespace, prefix);
+ return _dom_html_element_initialise(params, &ele->base);
}
/**