mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Slightly refine my previous fix for string assertions so things behave exactly as before. r=pollmann b=42936
This commit is contained in:
parent
ee136ac3db
commit
90dc7ea296
@ -3168,7 +3168,7 @@ HTMLContentSink::AddDocTypeDecl(const nsIParserNode& aNode, PRInt32 aMode)
|
||||
*/
|
||||
PRInt32 nameEnd = 0;
|
||||
|
||||
if (name.Length() && name.First() != '"' && name.First() != '\'') {
|
||||
if (name.IsEmpty() || (name.First() != '"' && name.First() != '\'')) {
|
||||
nameEnd = name.FindCharInSet(" \n\r\t");
|
||||
}
|
||||
|
||||
|
@ -3168,7 +3168,7 @@ HTMLContentSink::AddDocTypeDecl(const nsIParserNode& aNode, PRInt32 aMode)
|
||||
*/
|
||||
PRInt32 nameEnd = 0;
|
||||
|
||||
if (name.Length() && name.First() != '"' && name.First() != '\'') {
|
||||
if (name.IsEmpty() || (name.First() != '"' && name.First() != '\'')) {
|
||||
nameEnd = name.FindCharInSet(" \n\r\t");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user