aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-04 04:59:03 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-04 04:59:03 +0200
commitd2b8fd13b03503a259275387f07210aaf27e8d9a (patch)
tree04b7a752b35575144fd9832c730bb280a7b6982e /tests
parent38a2d43a7b207feefb9c5ded71ddc941a91fa158 (diff)
get attributes with node instead
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c2
1 files changed, 1 insertions, 1 deletions
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;