xmllite: Reset resume state when text node is parsed.

This commit is contained in:
Nikolay Sivov 2013-09-29 18:52:47 +04:00 committed by Alexandre Julliard
parent a090b46f72
commit 249b45786f
2 changed files with 6 additions and 0 deletions

View File

@ -2226,6 +2226,8 @@ static HRESULT reader_parse_chardata(xmlreader *reader)
reader_init_strvalue(start, ptr-start, &value);
reader_set_strvalue(reader, StringValue_Value, &value);
reader->resume[XmlReadResume_Body] = NULL;
reader->resumestate = XmlReadResumeState_Initial;
return S_OK;
}

View File

@ -944,7 +944,9 @@ static const char misc_test_xml[] =
"<!-- comment4 -->"
"<a>"
"<b/>"
"text"
"<!-- comment -->"
"text2"
"<?pi pibody ?>"
"</a>"
;
@ -960,7 +962,9 @@ static struct nodes_test misc_test = {
XmlNodeType_Comment,
XmlNodeType_Element,
XmlNodeType_Element,
XmlNodeType_Text,
XmlNodeType_Comment,
XmlNodeType_Text,
XmlNodeType_ProcessingInstruction,
XmlNodeType_EndElement,
XmlNodeType_None