From fab7a00da328debef4fbeba9eb21fc02cf21675d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 19 Aug 2023 13:26:46 +0200 Subject: Update html-parser version to latest, add html_node_find_child --- include/HtmlTree.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/HtmlTree.h b/include/HtmlTree.h index 4378152..2f25e1d 100644 --- a/include/HtmlTree.h +++ b/include/HtmlTree.h @@ -54,6 +54,13 @@ void html_tree_deinit(HtmlTree *self); /* Case insensitive match. Returns NULL if not found */ HtmlAttribute* html_node_get_attribute_by_name(HtmlNode *self, HtmlStringView name); +/* + Returns NULL if not found. + This function is not recursive. + Case insensitive search. +*/ +HtmlNode* html_node_find_child(HtmlNode *self, const char *tag_name, const char *attribute_name, const char *attribute_value); + #ifdef __cplusplus } #endif -- cgit v1.2.3