module html const ( html = '
V
vlib

modules

vpm
' ) fn test_search_by_tag_type() { mut dom := parse(html.html) tag := dom.get_tag_by_attribute_value('id', '2nd')[0] assert tag.get_tags('div').len == 5 assert tag.get_tags_by_attribute('href')[2].content == 'vpm' assert tag.get_tags_by_attribute_value('class', 'bar').len == 3 }