forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 273324: Hang on unclosed comments in standards mode. r=jst sr=bzb…
…arsky
- Loading branch information
mrbkap%gmail.com
committed
Dec 7, 2004
1 parent
71228f9
commit 95a501f
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
* the Initial Developer. All Rights Reserved. | ||
* | ||
* Contributor(s): | ||
* Blake Kaplan <[email protected]> | ||
* | ||
* 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"), | ||
|
@@ -976,7 +977,7 @@ nsresult nsHTMLTokenizer::ConsumeComment(PRUnichar aChar,CToken*& aToken,nsScann | |
|
||
if (kNotAComment == result) { | ||
// AddToken has IF_FREE()'d our token, so... | ||
return ConsumeText(aToken, aScanner); | ||
result = ConsumeText(aToken, aScanner); | ||
} | ||
|
||
return result; | ||
|
@@ -1054,6 +1055,11 @@ nsresult nsHTMLTokenizer::ConsumeSpecialMarkup(PRUnichar aChar,CToken*& aToken,n | |
result=aToken->Consume(aChar,aScanner,mFlags); | ||
AddToken(aToken,result,&mTokenDeque,theAllocator); | ||
} | ||
|
||
if (result == kNotAComment) { | ||
result = ConsumeText(aToken, aScanner); | ||
} | ||
|
||
return result; | ||
} | ||
|
||
|