Added a little comment about <SCRIPT> and <STYLE>

This commit is contained in:
harishd@netscape.com
1999-07-16 17:37:26 +00:00
parent 5e811bff21
commit d8c540c6b2
2 changed files with 4 additions and 0 deletions

View File

@@ -527,6 +527,8 @@ nsresult CTextToken::ConsumeUntil(PRUnichar aChar,PRBool aIgnoreComments,nsScann
result=aScanner.GetChar(aChar);
if((NS_OK==result) && (kLessThan==aChar)) {
//we're reading a tag or a comment...
//FYI: <STYLE> and <SCRIPT> should be treated as CDATA. So,
//don't try to acknowledge "HTML COMMENTS"...just ignore 'em.
result=aScanner.GetChar(theChar);
if((NS_OK==result) && (kExclamation==theChar) && (PR_FALSE==aIgnoreComments)) {
//read a comment...