bug 273213: The last letter of some tags consumed as CDATA get chopped off if the tag is not closed properly. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@166272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Blake Kaplan <mrbkap@gmail.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
@@ -759,8 +760,8 @@ nsresult CTextToken::ConsumeCharacterData(PRUnichar aChar,
|
||||
else if (!aConservativeConsume) {
|
||||
done = PR_TRUE; // Do this to fix Bug. 35456
|
||||
result = kFakeEndTag;
|
||||
aScanner.BindSubstring(mTextValue, theStartOffset, endPos.advance(-1));
|
||||
aScanner.SetPosition(endPos.advance(1));
|
||||
aScanner.BindSubstring(mTextValue, theStartOffset, endPos);
|
||||
aScanner.SetPosition(endPos);
|
||||
}
|
||||
else {
|
||||
done = PR_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user