зеркало из https://github.com/mozilla/gecko-dev.git
Added a little comment about <SCRIPT> and <STYLE>
This commit is contained in:
Родитель
acb8cb344b
Коммит
2968e7c251
|
@ -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...
|
||||
|
|
Загрузка…
Ссылка в новой задаче