diff options
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; |