From d2b8fd13b03503a259275387f07210aaf27e8d9a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 4 Sep 2022 04:59:03 +0200 Subject: get attributes with node instead --- tests/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/main.c') diff --git a/tests/main.c b/tests/main.c index 2a08ec7..ac3a081 100644 --- a/tests/main.c +++ b/tests/main.c @@ -20,7 +20,7 @@ static char* get_file_content(const char *filepath, size_t *filesize) { } static int result_callback(QuickMediaMatchNode *node, void *userdata) { - QuickMediaStringView href = quickmedia_html_node_get_attribute_value(node, "href"); + QuickMediaStringView href = quickmedia_html_node_get_attribute_value(node->node, "href"); QuickMediaStringView text = quickmedia_html_node_get_text(node); printf("a href: %.*s, node value: %.*s\n", (int)href.size, href.data, (int)text.size, text.data); return 0; -- cgit v1.2.3