Skip to content

Commit

Permalink
Fixed parsing problem for PRE element with CDATA in thread and single…
Browse files Browse the repository at this point in the history
… mode.
  • Loading branch information
lexborisov committed Sep 6, 2018
1 parent 6d957dd commit d021b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/myhtml/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -3885,8 +3885,11 @@ bool myhtml_rules_check_for_first_newline(myhtml_tree_t* tree, myhtml_token_node
bool myhtml_rules_tree_dispatcher(myhtml_tree_t* tree, myhtml_token_node_t* token)
{
// for textarea && pre && listen
if(myhtml_rules_check_for_first_newline(tree, token))
if(myhtml_rules_check_for_first_newline(tree, token)) {
tree->token_last_done = token;

return false;
}

if(tree->state_of_builder != MyHTML_TOKENIZER_STATE_DATA)
tree->state_of_builder = MyHTML_TOKENIZER_STATE_DATA;
Expand Down

0 comments on commit d021b90

Please sign in to comment.