diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 22:21:26 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 22:21:26 +0100 |
commit | 146bda077e00e3feffc3748af681f10494fc9c5c (patch) | |
tree | 43d10c947692a85d7b40973ae77bd0f0c968cff4 /src/html/html_document.c | |
parent | 50d83f430d109472dee45910851275fe189b0fdb (diff) | |
download | libdom-146bda077e00e3feffc3748af681f10494fc9c5c.tar.gz libdom-146bda077e00e3feffc3748af681f10494fc9c5c.tar.bz2 |
HTML{{,Button,Select,Form}Element,Document,Element,{,Options}Collection}: Make buttons work and forms contain their correct buttons
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r-- | src/html/html_document.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c index b36ca7d..217e582 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -426,10 +426,13 @@ dom_exception _dom_html_document_get_links(dom_html_document *doc, return DOM_NOT_SUPPORTED_ERR; } -static bool __dom_html_document_node_is_form(dom_node_internal *node) +static bool __dom_html_document_node_is_form(dom_node_internal *node, + void *ctx) { dom_html_document *doc = (dom_html_document *)node->owner; - + + UNUSED(ctx); + return dom_string_caseless_isequal(node->name, doc->memoised[hds_FORM]); } @@ -446,7 +449,7 @@ dom_exception _dom_html_document_get_forms(dom_html_document *doc, return err; err = _dom_html_collection_create(doc, (dom_node_internal *) root, - __dom_html_document_node_is_form, &result); + __dom_html_document_node_is_form, NULL, &result); if (err != DOM_NO_ERR) { dom_node_unref(root); return err; |