Branch Coverage

third_party/modest/source/myhtml/rules.c
Criterion Covered Total %
branch 77 624 12.3


line true false branch
34 30 0 if(len == 0)
40 0 0 if(new_token == NULL)
64 0 0 for (size_t i = 0; i < len; ++i)
66 0 0 if (str->data[i] == '\0')
69 0 0 while ((next_non_null < len) && str->data[next_non_null] == '\0') {++next_non_null;}
0 0 while ((next_non_null < len) && str->data[next_non_null] == '\0') {++next_non_null;}
74 0 0 while ((next_null < len) && str->data[next_null] != '\0') {++next_null;}
0 0 while ((next_null < len) && str->data[next_null] != '\0') {++next_null;}
91 44 15 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE) {
116 36 0 if((tree->parse_flags & MyHTML_TREE_PARSE_FLAGS_WITHOUT_DOCTYPE_IN_TREE) == 0)
120 5 31 if(tree->doctype.is_html == false &&
1 4 if(tree->doctype.is_html == false &&
121 0 1 (tree->doctype.attr_public == NULL ||
142 0 130 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
144 0 0 switch (token->tag_id) {
181 2 15 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE) {
217 0 128 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
219 0 0 switch (token->tag_id) {
244 0 15 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE) {
296 0 130 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
317 0 0 if(myhtml_tree_open_elements_find_by_tag_idx_reverse(tree, MyHTML_TAG_TEMPLATE, MyHTML_NAMESPACE_HTML, NULL) == NULL)
329 0 0 if(current_node && current_node->tag_id != MyHTML_TAG_TEMPLATE) {
354 0 15 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE)
361 0 15 if(new_token)
419 0 0 if(tree->flags & MyHTML_TREE_FLAGS_SCRIPT) {
504 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
544 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE)
586 0 128 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
617 0 15 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE)
624 0 15 if(new_token)
703 19 0 while(i) {
709 18 1 if(node->tag_id == token->tag_id && node->ns == MyHTML_NAMESPACE_HTML) {
18 0 if(node->tag_id == token->tag_id && node->ns == MyHTML_NAMESPACE_HTML) {
725 1 0 if(tag_ctx->cats[ node->ns ] & MyHTML_TAG_CATEGORIES_SPECIAL) {
737 375 1226 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
749 0 1 if(body_node == NULL) {
755 2 1 for (size_t i = 0; i < tree->open_elements->length; i++) {
756 2 0 switch (tree->open_elements->list[i]->tag_id) {
792 0 0 if(body_node == NULL) {
798 0 0 for (size_t i = 0; i < tree->open_elements->length; i++) {
799 0 0 switch (tree->open_elements->list[i]->tag_id) {
858 0 129 if(myhtml_tree_element_in_scope(tree, token->tag_id, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE) == NULL) {
885 0 0 if(template_node == NULL)
894 0 0 if(node == NULL || myhtml_tree_element_in_scope_by_node(node, MyHTML_TAG_CATEGORIES_SCOPE) == false) {
0 0 if(node == NULL || myhtml_tree_element_in_scope_by_node(node, MyHTML_TAG_CATEGORIES_SCOPE) == false) {
919 0 0 if(form_node == NULL) {
946 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON) == NULL) {
957 0 186 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_LI, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_LIST_ITEM) == NULL) {
983 0 0 if(myhtml_tree_element_in_scope(tree, token->tag_id, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE) == NULL) {
1017 0 0 while(i) {
1022 0 0 if((list[i]->tag_id == MyHTML_TAG_H1 ||
0 0 if((list[i]->tag_id == MyHTML_TAG_H1 ||
1023 0 0 list[i]->tag_id == MyHTML_TAG_H2 ||
1024 0 0 list[i]->tag_id == MyHTML_TAG_H3 ||
1025 0 0 list[i]->tag_id == MyHTML_TAG_H4 ||
1026 0 0 list[i]->tag_id == MyHTML_TAG_H5 ||
1027 0 0 list[i]->tag_id == MyHTML_TAG_H6) &&
1032 0 0 else if(tag_ctx->cats[list[i]->ns] & MyHTML_TAG_CATEGORIES_SCOPE)
1036 0 0 if(node == NULL) {
1054 0 0 while(tree->open_elements->length) {
1057 0 0 if((list[tree->open_elements->length]->tag_id == MyHTML_TAG_H1 ||
0 0 if((list[tree->open_elements->length]->tag_id == MyHTML_TAG_H1 ||
1058 0 0 list[tree->open_elements->length]->tag_id == MyHTML_TAG_H2 ||
1059 0 0 list[tree->open_elements->length]->tag_id == MyHTML_TAG_H3 ||
1060 0 0 list[tree->open_elements->length]->tag_id == MyHTML_TAG_H4 ||
1061 0 0 list[tree->open_elements->length]->tag_id == MyHTML_TAG_H5 ||
1062 0 0 list[tree->open_elements->length]->tag_id == MyHTML_TAG_H6) &&
1097 0 0 if(myhtml_tree_element_in_scope(tree, token->tag_id, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE) == NULL) {
1128 0 0 if(token->attr_first) {
1132 0 0 if(token->attr_last) {
1138 0 0 if (token->type & MyHTML_TOKEN_TYPE_DONE) {
1164 0 646 if(token->type & MyHTML_TOKEN_TYPE_NULL) {
1170 0 0 if(token->str.length) {
1174 0 0 if((token->type & MyHTML_TOKEN_TYPE_WHITESPACE) == 0)
1182 290 356 if((token->type & MyHTML_TOKEN_TYPE_WHITESPACE) == 0)
1201 0 0 if(myhtml_tree_open_elements_find_by_tag_idx(tree, MyHTML_TAG_TEMPLATE, MyHTML_NAMESPACE_HTML, NULL)) {
1210 0 0 if(tree->open_elements->length > 0) {
1213 0 0 if(top_node->token) {
1245 0 0 if(tree->open_elements->length > 1)
1247 0 0 if(!(tree->open_elements->list[1]->tag_id == MyHTML_TAG_BODY &&
0 0 if(!(tree->open_elements->list[1]->tag_id == MyHTML_TAG_BODY &&
1248 0 0 tree->open_elements->list[1]->ns == MyHTML_NAMESPACE_HTML) ||
1262 0 0 if(tree->open_elements->length > 1) {
1265 0 0 if(top_node->token) {
1283 0 0 if(tree->open_elements->length > 1)
1285 0 0 if(!(tree->open_elements->list[1]->tag_id == MyHTML_TAG_BODY &&
0 0 if(!(tree->open_elements->list[1]->tag_id == MyHTML_TAG_BODY &&
1297 0 0 if((tree->flags & MyHTML_TREE_FLAGS_FRAMESET_OK) == 0) {
1317 0 144 if(tree->template_insertion->length)
1321 271 144 for(size_t i = 0; i < tree->open_elements->length; i++) {
1322 271 0 if(list[i]->tag_id != MyHTML_TAG_DD && list[i]->tag_id != MyHTML_TAG_DT &&
271 0 if(list[i]->tag_id != MyHTML_TAG_DD && list[i]->tag_id != MyHTML_TAG_DT &&
271 0 if(list[i]->tag_id != MyHTML_TAG_DD && list[i]->tag_id != MyHTML_TAG_DT &&
1323 271 0 list[i]->tag_id != MyHTML_TAG_LI && list[i]->tag_id != MyHTML_TAG_MENUITEM &&
271 0 list[i]->tag_id != MyHTML_TAG_LI && list[i]->tag_id != MyHTML_TAG_MENUITEM &&
1324 271 0 list[i]->tag_id != MyHTML_TAG_OPTGROUP && list[i]->tag_id != MyHTML_TAG_OPTION &&
271 0 list[i]->tag_id != MyHTML_TAG_OPTGROUP && list[i]->tag_id != MyHTML_TAG_OPTION &&
1325 271 0 list[i]->tag_id != MyHTML_TAG_P && list[i]->tag_id != MyHTML_TAG_RB &&
271 0 list[i]->tag_id != MyHTML_TAG_P && list[i]->tag_id != MyHTML_TAG_RB &&
1326 271 0 list[i]->tag_id != MyHTML_TAG_RP && list[i]->tag_id != MyHTML_TAG_RT &&
271 0 list[i]->tag_id != MyHTML_TAG_RP && list[i]->tag_id != MyHTML_TAG_RT &&
1327 271 0 list[i]->tag_id != MyHTML_TAG_RTC && list[i]->tag_id != MyHTML_TAG_TBODY &&
271 0 list[i]->tag_id != MyHTML_TAG_RTC && list[i]->tag_id != MyHTML_TAG_TBODY &&
1328 271 0 list[i]->tag_id != MyHTML_TAG_TD && list[i]->tag_id != MyHTML_TAG_TFOOT &&
271 0 list[i]->tag_id != MyHTML_TAG_TD && list[i]->tag_id != MyHTML_TAG_TFOOT &&
1329 271 0 list[i]->tag_id != MyHTML_TAG_TH && list[i]->tag_id != MyHTML_TAG_THEAD &&
271 0 list[i]->tag_id != MyHTML_TAG_TH && list[i]->tag_id != MyHTML_TAG_THEAD &&
1330 144 127 list[i]->tag_id != MyHTML_TAG_TR && list[i]->tag_id != MyHTML_TAG_BODY &&
0 144 list[i]->tag_id != MyHTML_TAG_TR && list[i]->tag_id != MyHTML_TAG_BODY &&
1365 0 129 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1375 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1381 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_MENUITEM))
1395 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1401 0 0 switch (current_node->tag_id) {
1409 0 0 if(current_node->ns == MyHTML_NAMESPACE_HTML) {
1428 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1446 0 0 if(tree->node_form && is_in_node == NULL) {
0 0 if(tree->node_form && is_in_node == NULL) {
1452 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1458 0 0 if(is_in_node == NULL)
1470 186 0 while (oel_index) {
1477 0 186 if(myhtml_is_html_node(node, MyHTML_TAG_LI)) {
1493 186 0 else if(tag_ctx->cats[node->ns] & MyHTML_TAG_CATEGORIES_SPECIAL)
1495 186 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
186 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
0 186 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
0 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
1501 0 186 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1517 0 0 while (oel_index) {
1523 0 0 if(myhtml_is_html_node(node, MyHTML_TAG_DD)) {
1537 0 0 else if(myhtml_is_html_node(node, MyHTML_TAG_DT)) {
1551 0 0 else if(tag_ctx->cats[node->ns] & MyHTML_TAG_CATEGORIES_SPECIAL)
1553 0 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
0 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
0 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
0 0 if(!((node->tag_id == MyHTML_TAG_ADDRESS || node->tag_id == MyHTML_TAG_DIV ||
1559 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1569 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1581 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_BUTTON, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE)) {
1600 0 0 if(node) {
1607 0 0 if(node) {
1644 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_NOBR, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE)) {
1709 0 0 if(myhtml_token_attr_match_case(tree->token, token, "type", 4, "hidden", 6) == NULL) {
1727 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1733 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_MENUITEM))
1772 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_P, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_BUTTON)) {
1803 0 0 if(tree->flags & MyHTML_TREE_FLAGS_SCRIPT) {
1827 0 0 if(tree->insert_mode == MyHTML_INSERTION_MODE_IN_TABLE ||
0 0 if(tree->insert_mode == MyHTML_INSERTION_MODE_IN_TABLE ||
1828 0 0 tree->insert_mode == MyHTML_INSERTION_MODE_IN_CAPTION ||
1829 0 0 tree->insert_mode == MyHTML_INSERTION_MODE_IN_TABLE_BODY ||
1830 0 0 tree->insert_mode == MyHTML_INSERTION_MODE_IN_ROW ||
1846 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_OPTION))
1859 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_MENUITEM))
1871 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_RUBY, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE)) {
1889 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_RUBY, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE)) {
1894 0 0 if(current_node->tag_id != MyHTML_TAG_RTC && current_node->tag_id != MyHTML_TAG_RUBY) {
1917 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE_SELF)
1935 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE_SELF)
1973 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
1975 0 0 switch (token->tag_id) {
1993 0 0 if(token->tag_id == MyHTML_TAG__END_OF_FILE)
2000 0 0 if(current_node->tag_id == MyHTML_TAG_SCRIPT)
2017 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2024 0 0 if(table_node == NULL) {
2075 0 0 if((current_node->tag_id == MyHTML_TAG_TABLE ||
0 0 if((current_node->tag_id == MyHTML_TAG_TABLE ||
2076 0 0 current_node->tag_id == MyHTML_TAG_TBODY ||
2077 0 0 current_node->tag_id == MyHTML_TAG_TFOOT ||
2078 0 0 current_node->tag_id == MyHTML_TAG_THEAD ||
2079 0 0 current_node->tag_id == MyHTML_TAG_TR) &&
2167 0 0 if(table_node == NULL) {
2191 0 0 if(myhtml_token_attr_match_case(tree->token, token, "type", 4, "hidden", 6) == NULL) {
2215 0 0 if(tree->node_form || template)
0 0 if(tree->node_form || template)
2246 0 0 if(token->tag_id == MyHTML_TAG__TEXT)
2248 0 0 if(token->type & MyHTML_TOKEN_TYPE_NULL) {
2254 0 0 if(token->str.length)
2264 0 0 for(size_t i = 0; i < token_list->length; i++) {
2265 0 0 if((token_list->list[i]->type & MyHTML_TOKEN_TYPE_WHITESPACE) == 0) {
2271 0 0 if(is_not_ws)
2273 0 0 for(size_t i = 0; i < token_list->length; i++) {
2282 0 0 for(size_t i = 0; i < token_list->length; i++) {
2296 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2301 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_CAPTION, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_TABLE) == NULL) {
2325 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_CAPTION, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_TABLE) == NULL) {
2367 0 0 switch (token->tag_id)
2379 0 0 if(myhtml_tree_element_in_scope(tree, MyHTML_TAG_CAPTION, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_TABLE) == NULL) {
2411 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2418 0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
2444 0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
2462 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE) {
2468 0 0 if(new_token)
2474 0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
2520 0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
0 0 if(current_node && myhtml_is_html_node(current_node, MyHTML_TAG_COLGROUP)) {
2539 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2548 0 0 if(node == NULL) {
2567 0 0 if(tbody_node == NULL && tfoot_node == NULL && thead_node == NULL) {
0 0 if(tbody_node == NULL && tfoot_node == NULL && thead_node == NULL) {
0 0 if(tbody_node == NULL && tfoot_node == NULL && thead_node == NULL) {
2639 0 0 if(tbody_node == NULL && tfoot_node == NULL && thead_node == NULL) {
0 0 if(tbody_node == NULL && tfoot_node == NULL && thead_node == NULL) {
0 0 if(tbody_node == NULL && tfoot_node == NULL && thead_node == NULL) {
2665 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2672 0 0 if(tr_node == NULL) {
2690 0 0 if(tr_node == NULL) {
2709 0 0 if(node == NULL) {
2716 0 0 if(tr_node == NULL)
2767 0 0 if(tr_node == NULL) {
2791 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2799 0 0 if(node == NULL) {
2844 0 0 if(node == NULL) {
2851 0 0 if(node) {
2856 0 0 if(node)
2868 0 0 switch (token->tag_id)
2883 0 0 if(td_node == NULL && th_node == NULL) {
0 0 if(td_node == NULL && th_node == NULL) {
2892 0 0 myhtml_tree_close_cell(tree, (td_node == NULL ? th_node : td_node), token);
2907 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
2914 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_OPTION))
2916 0 0 if(tree->open_elements->length > 1) {
2919 0 0 if(myhtml_is_html_node(optgrp_node, MyHTML_TAG_OPTGROUP))
2928 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_OPTGROUP))
2944 0 0 if(myhtml_is_html_node(current_node, MyHTML_TAG_OPTION))
2960 0 0 if(select_node == NULL) {
2987 0 0 if(token->type & MyHTML_TOKEN_TYPE_NULL) {
2993 0 0 if(token->str.length)
3019 0 0 if(myhtml_is_html_node(current_node, token->tag_id))
3030 0 0 if(current_node->tag_id == MyHTML_TAG_OPTION &&
0 0 if(current_node->tag_id == MyHTML_TAG_OPTION &&
3036 0 0 if(current_node->tag_id == token->tag_id &&
0 0 if(current_node->tag_id == token->tag_id &&
3051 0 0 if(select_node == NULL) {
3072 0 0 if(select_node == NULL) {
3104 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
3106 0 0 switch (token->tag_id) {
3121 0 0 if(some_node == NULL) {
3138 0 0 switch (token->tag_id)
3168 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
3170 0 0 switch (token->tag_id) {
3239 0 0 if(node == NULL) {
3269 0 1 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
3271 0 0 switch (token->tag_id) {
3274 0 0 if(tree->fragment) {
3299 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE)
3308 0 0 if(tree->open_elements->length == 0) {
3355 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
3357 0 0 switch (token->tag_id) {
3362 0 0 if(current_node == tree->document->child) {
3373 0 0 if(tree->fragment == NULL &&
0 0 if(tree->fragment == NULL &&
3374 0 0 !(current_node->tag_id == MyHTML_TAG_FRAMESET &&
3396 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE) {
3407 0 0 if(token->str.length)
3468 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
3470 0 0 switch (token->tag_id) {
3488 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE) {
3499 0 0 if(token->str.length)
3541 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE)
3564 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE)
3597 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE) {
3621 0 0 if(token->type & MyHTML_TOKEN_TYPE_WHITESPACE)
3625 0 0 if(new_token)
3664 0 0 if(tree->open_elements->length)
3669 0 0 while (i)
3673 0 0 if(current_node->tag_id == token->tag_id) {
3680 0 0 if(list[i]->ns == MyHTML_NAMESPACE_HTML)
3694 0 0 if(adjusted_node->ns == MyHTML_NAMESPACE_MATHML) {
3697 0 0 else if(adjusted_node->ns == MyHTML_NAMESPACE_SVG) {
3706 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE_SELF)
3708 0 0 if(token->tag_id == MyHTML_TAG_SCRIPT &&
0 0 if(token->tag_id == MyHTML_TAG_SCRIPT &&
3723 0 0 if(token->type & MyHTML_TOKEN_TYPE_CLOSE) {
3726 0 0 if(token->tag_id == MyHTML_TAG_SCRIPT &&
0 0 if(token->tag_id == MyHTML_TAG_SCRIPT &&
3727 0 0 current_node->tag_id == MyHTML_TAG_SCRIPT &&
3742 0 0 if(token->type & MyHTML_TOKEN_TYPE_NULL) {
3752 0 0 if((token->type & MyHTML_TOKEN_TYPE_WHITESPACE) == 0)
3818 0 0 if(token->tag_id == MyHTML_TAG_FONT)
3823 0 0 myhtml_token_attr_by_name(token, "face" , 4) == NULL &&
3830 0 0 if(tree->fragment == NULL) {
3837 0 0 while(current_node && !(myhtml_tree_is_mathml_integration_point(tree, current_node) ||
3839 0 0 current_node->ns == MyHTML_NAMESPACE_HTML));
3860 0 2288 if(tree->flags & MyHTML_TREE_FLAGS_PARSE_FLAG) {
3861 0 0 if(tree->flags &MyHTML_TREE_FLAGS_PARSE_FLAG_EMIT_NEWLINE)
3863 0 0 if(token->tag_id == MyHTML_TAG__TEXT) {
3866 0 0 if(token->str.length > 0) {
3867 0 0 if(token->str.data[0] == '\n') {
3872 0 0 if(token->str.length == 0) {
3892 0 2288 if(myhtml_rules_check_for_first_newline(tree, token)) {
3898 0 2288 if(tree->state_of_builder != MyHTML_TOKENIZER_STATE_DATA)
3904 1986 302 if(tree->open_elements->length == 0 || adjusted_node->ns == MyHTML_NAMESPACE_HTML) {
1986 0 if(tree->open_elements->length == 0 || adjusted_node->ns == MyHTML_NAMESPACE_HTML) {
3907 0 0 else if(myhtml_tree_is_mathml_integration_point(tree, adjusted_node) &&
0 0 else if(myhtml_tree_is_mathml_integration_point(tree, adjusted_node) &&
3908 0 0 ((token->tag_id == MyHTML_TAG__TEXT ||
3909 0 0 (token->tag_id != MyHTML_TAG_MGLYPH && token->tag_id != MyHTML_TAG_MALIGNMARK)) &&
0 0 (token->tag_id != MyHTML_TAG_MGLYPH && token->tag_id != MyHTML_TAG_MALIGNMARK)) &&
3914 0 0 else if(adjusted_node->tag_id == MyHTML_TAG_ANNOTATION_XML &&
0 0 else if(adjusted_node->tag_id == MyHTML_TAG_ANNOTATION_XML &&
3915 0 0 adjusted_node->ns == MyHTML_NAMESPACE_MATHML &&
3916 0 0 token->tag_id == MyHTML_TAG_SVG && (token->type & MyHTML_TOKEN_TYPE_CLOSE) == 0)
3920 0 0 else if(myhtml_tree_is_html_integration_point(tree, adjusted_node) &&
0 0 else if(myhtml_tree_is_html_integration_point(tree, adjusted_node) &&
3921 0 0 ((token->type & MyHTML_TOKEN_TYPE_CLOSE) == 0 || token->tag_id == MyHTML_TAG__TEXT))
3925 0 0 else if(token->tag_id == MyHTML_TAG__END_OF_FILE)
3930 1685 603 if(reprocess == false) {
3941 0 115 if(myhtml->insertion_func == NULL)