Bug 366993. HTML doctype should always be capitalized. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@218776 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3156,7 +3156,9 @@ HTMLContentSink::AddDocTypeDecl(const nsIParserNode& aNode)
|
||||
nsCOMPtr<nsIDOMDocument> doc(do_QueryInterface(mHTMLDocument));
|
||||
doc->GetDoctype(getter_AddRefs(oldDocType));
|
||||
|
||||
if (name.IsEmpty()) {
|
||||
// Assign "HTML" if we don't have anything, and normalize
|
||||
// the name if it is something like "hTmL", per HTML5.
|
||||
if (name.IsEmpty() || name.LowerCaseEqualsLiteral("html")) {
|
||||
name.AssignLiteral("HTML");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user