mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
AddDoctypeDecl should not enforce "doctype" being uppercase. Bug 197331, patch
by bugzilla@jellycan.com (Brodie Thiesfield), r=harishd, sr=jst
This commit is contained in:
parent
170d69ea6e
commit
bd5dec2fa1
@ -3836,9 +3836,10 @@ HTMLContentSink::AddDocTypeDecl(const nsIParserNode& aNode)
|
||||
}
|
||||
|
||||
// Cut out "<!DOCTYPE" or "DOCTYPE" from the name.
|
||||
if (Substring(name, 0, 9).Equals(NS_LITERAL_STRING("<!DOCTYPE"))) {
|
||||
nsCaseInsensitiveStringComparator ignoreCase;
|
||||
if (Substring(name, 0, 9).Equals(NS_LITERAL_STRING("<!DOCTYPE"), ignoreCase)) {
|
||||
name.Cut(0, 9);
|
||||
} else if (Substring(name, 0, 7).Equals(NS_LITERAL_STRING("DOCTYPE"))) {
|
||||
} else if (Substring(name, 0, 7).Equals(NS_LITERAL_STRING("DOCTYPE"), ignoreCase)) {
|
||||
name.Cut(0, 7);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user