From 0eb546dfc74080e4cd00772dafb0aa2a46bc4153 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 1 Aug 2023 16:56:40 +0200 Subject: Add quickmedia_html_node_find_child --- include/quickmedia/HtmlSearch.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/quickmedia') diff --git a/include/quickmedia/HtmlSearch.h b/include/quickmedia/HtmlSearch.h index e2b0ecc..8ce7ff4 100644 --- a/include/quickmedia/HtmlSearch.h +++ b/include/quickmedia/HtmlSearch.h @@ -57,6 +57,14 @@ typedef struct { */ QuickMediaStringView quickmedia_html_node_get_attribute_value(QuickMediaHtmlNode *self, const char *attribute_name); +/* + Returns NULL if not found. + The result is only valid within the callback function scope. + This function is not recursive. + Case insensitive search. +*/ +QuickMediaHtmlNode* quickmedia_html_node_find_child(QuickMediaHtmlNode *self, const char *tag_name, const char *attribute_name, const char *attribute_value); + /* Returns an empty string if the node doesn't have any text or if there was an error creating the text. The result is only valid within the callback function scope. -- cgit v1.2.3