diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-04 04:59:03 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-04 04:59:03 +0200 |
commit | d2b8fd13b03503a259275387f07210aaf27e8d9a (patch) | |
tree | 04b7a752b35575144fd9832c730bb280a7b6982e /src | |
parent | 38a2d43a7b207feefb9c5ded71ddc941a91fa158 (diff) |
get attributes with node instead
Diffstat (limited to 'src')
-rw-r--r-- | src/HtmlSearch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HtmlSearch.c b/src/HtmlSearch.c index 45d8aa4..cdd4759 100644 --- a/src/HtmlSearch.c +++ b/src/HtmlSearch.c @@ -416,12 +416,12 @@ static int html_parse_callback(HtmlParser *html_parser, HtmlParseType parse_type return 0; } -QuickMediaStringView quickmedia_html_node_get_attribute_value(QuickMediaMatchNode *self, const char *attribute_name) { +QuickMediaStringView quickmedia_html_node_get_attribute_value(QuickMediaHtmlNode *self, const char *attribute_name) { QuickMediaStringView attr_name; attr_name.data = attribute_name; attr_name.size = strlen(attribute_name); - QuickMediaHtmlAttribute *attr = get_attribute_by_name(self->node, attr_name); + QuickMediaHtmlAttribute *attr = get_attribute_by_name(self, attr_name); if(attr) { QuickMediaStringView attr_value = attr->value; strip(attr_value.data, attr_value.size, &attr_value.data, &attr_value.size, is_whitespace); |