mirror of
https://github.com/lexborisov/Modest
synced 2024-11-28 16:33:08 +03:00
Fixing lexborisov/myhtml/issues/187
Fixing lost `MyHTML_TOKEN_TYPE_DONE` flag for invalid tag `<br>`
This commit is contained in:
parent
81d5ed7afd
commit
4dc5162e76
@ -1135,7 +1135,11 @@ bool myhtml_insertion_mode_in_body(myhtml_tree_t* tree, myhtml_token_node_t* tok
|
||||
|
||||
myhtml_tree_active_formatting_reconstruction(tree);
|
||||
|
||||
if (token->type & MyHTML_TOKEN_TYPE_DONE) {
|
||||
token->type = MyHTML_TOKEN_TYPE_OPEN | MyHTML_TOKEN_TYPE_DONE;
|
||||
} else {
|
||||
token->type = MyHTML_TOKEN_TYPE_OPEN;
|
||||
}
|
||||
|
||||
myhtml_tree_node_insert_html_element(tree, token);
|
||||
myhtml_tree_open_elements_pop(tree);
|
||||
|
Loading…
Reference in New Issue
Block a user