diff options
Diffstat (limited to 'src/html/html_button_element.c')
-rw-r--r-- | src/html/html_button_element.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/html/html_button_element.c b/src/html/html_button_element.c index 28b694bd..a9c34d5a 100644 --- a/src/html/html_button_element.c +++ b/src/html/html_button_element.c @@ -27,12 +27,12 @@ static struct dom_element_protected_vtable _protect_vtable = { /** * Create a dom_html_button_element object * - * \param doc The document object - * \param 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_button_element_create(struct dom_html_document *doc, - dom_string *namespace, dom_string *prefix, +dom_exception _dom_html_button_element_create( + struct dom_html_element_create_params *params, struct dom_html_button_element **ele) { struct dom_node_internal *node; @@ -46,25 +46,23 @@ dom_exception _dom_html_button_element_create(struct dom_html_document *doc, node->base.vtable = &_dom_html_element_vtable; node->vtable = &_protect_vtable; - return _dom_html_button_element_initialise(doc, namespace, prefix, *ele); + return _dom_html_button_element_initialise(params, *ele); } /** * Initialise a dom_html_button_element object * - * \param doc The document object - * \param ele The dom_html_button_element object + * \param params The html element creation parameters + * \param ele The dom_html_button_element object * \return DOM_NO_ERR on success, appropriate dom_exception on failure. */ -dom_exception _dom_html_button_element_initialise(struct dom_html_document *doc, - dom_string *namespace, dom_string *prefix, +dom_exception _dom_html_button_element_initialise( + struct dom_html_element_create_params *params, struct dom_html_button_element *ele) { ele->form = NULL; - return _dom_html_element_initialise(doc, &ele->base, - doc->elements[DOM_HTML_ELEMENT_TYPE_BUTTON], - namespace, prefix); + return _dom_html_element_initialise(params, &ele->base); } /** |