Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Borisov <lex.borisov@gmail.com>2018-09-06 20:08:30 +0300
committerAlexander Borisov <lex.borisov@gmail.com>2018-09-06 20:08:30 +0300
commitd021b907517d0be30bd709dc9649bc9b54e4b4f4 (patch)
tree7d823bdea672a15abdd82ccc0799ee7c4d82881a
parent6d957dd24ded5f01a064f7ffe3e6844409450db3 (diff)
Fixed parsing problem for PRE element with CDATA in thread and single mode.
-rw-r--r--source/myhtml/rules.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/myhtml/rules.c b/source/myhtml/rules.c
index 694a49f..79a3a14 100644
--- a/source/myhtml/rules.c
+++ b/source/myhtml/rules.c
@@ -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;