зеркало из https://github.com/mozilla/gecko-dev.git
bug 273213: The last letter of some tags consumed as CDATA get chopped off if the tag is not closed properly. r+sr=bzbarsky
This commit is contained in:
Родитель
ad87070b4e
Коммит
5cbc9ce5d3
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче