#include #include #include static hb_map_tag_relations* hb_rule_tag_child_whitelist_map; void hb_rule_tag_child_whitelist_map_add_entries(hb_map_tag_relations* map) { // hb_set_tag_names* colgroup = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(colgroup, "col"); hb_map_tag_relations_set_whole_literal(map, "colgroup", colgroup); // hb_set_tag_names* datalist = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(datalist, "option"); hb_map_tag_relations_set_whole_literal(map, "datalist", datalist); //
hb_set_tag_names* dl = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(dl, "dt"); hb_set_tag_names_add_whole_literal(dl, "dd"); hb_map_tag_relations_set_whole_literal(map, "dl", dl); //
hb_set_tag_names* hgroup = hb_set_tag_names_create(); hb_rule_tag_heading_add_elems(hgroup); hb_map_tag_relations_set_whole_literal(map, "hgroup", hgroup); //
    hb_set_tag_names* ol = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(ol, "li"); hb_map_tag_relations_set_whole_literal(map, "ol", ol); // hb_set_tag_names* optgroup = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(optgroup, "option"); hb_map_tag_relations_set_whole_literal(map, "optgroup", optgroup); // hb_set_tag_names* picture = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(picture, "source"); hb_set_tag_names_add_whole_literal(picture, "img"); hb_map_tag_relations_set_whole_literal(map, "picture", picture); //