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

This commit is contained in:
harishd%netscape.com 1999-07-16 17:37:26 +00:00
Родитель acb8cb344b
Коммит 2968e7c251
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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...

Просмотреть файл

@ -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...