summaryrefslogtreecommitdiff
path: root/src/html/html_element.h
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_element.h
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_element.h')
-rw-r--r--src/html/html_element.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/html/html_element.h b/src/html/html_element.h
index e32b09e..2d42abc 100644
--- a/src/html/html_element.h
+++ b/src/html/html_element.h
@@ -24,13 +24,20 @@ struct dom_html_element {
/**< The base class */
};
-dom_exception _dom_html_element_create(struct dom_html_document *doc,
- dom_string *name, dom_string *namespace,
- dom_string *prefix, dom_html_element **result);
+struct dom_html_element_create_params {
+ struct dom_html_document *doc;
+ dom_string *name;
+ dom_string *namespace;
+ dom_string *prefix;
+};
+
+dom_exception _dom_html_element_create(
+ struct dom_html_element_create_params *params,
+ dom_html_element **result);
-dom_exception _dom_html_element_initialise(struct dom_html_document *doc,
- struct dom_html_element *el, dom_string *name,
- dom_string *namespace, dom_string *prefix);
+dom_exception _dom_html_element_initialise(
+ struct dom_html_element_create_params *params,
+ struct dom_html_element *el);
void _dom_html_element_finalise(struct dom_html_element *ele);