#include #include #include static hb_map_tag_relations* hb_rule_tag_parent_whitelist_map; void hb_rule_tag_parent_whitelist_map_add_entries(hb_map_tag_relations* map) { // hb_set_tag_names* caption = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(caption, "table"); hb_map_tag_relations_set_whole_literal(map, "caption", caption); // hb_set_tag_names* col = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(col, "table"); hb_set_tag_names_add_whole_literal(col, "colgroup"); hb_map_tag_relations_set_whole_literal(map, "col", col); // hb_set_tag_names* colgroup = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(colgroup, "table"); hb_map_tag_relations_set_whole_literal(map, "colgroup", colgroup); //
hb_set_tag_names* dd = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(dd, "dl"); hb_map_tag_relations_set_whole_literal(map, "dd", dd); //
hb_set_tag_names* dt = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(dt, "dl"); hb_map_tag_relations_set_whole_literal(map, "dt", dt); //
hb_set_tag_names* figcaption = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(figcaption, "figure"); hb_map_tag_relations_set_whole_literal(map, "figcaption", figcaption); // hb_set_tag_names* legend = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(legend, "fieldset"); hb_map_tag_relations_set_whole_literal(map, "legend", legend); //
  • hb_set_tag_names* li = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(li, "ul"); hb_set_tag_names_add_whole_literal(li, "ol"); hb_set_tag_names_add_whole_literal(li, "menu"); hb_map_tag_relations_set_whole_literal(map, "li", li); // hb_set_tag_names* optgroup = hb_set_tag_names_create(); hb_set_tag_names_add_whole_literal(optgroup, "select"); hb_map_tag_relations_set_whole_literal(map, "optgroup", optgroup); //