From 58a218c75787e62f35cfcae1a9abe18079b0d550 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 18 Feb 1999 00:24:16 +0000 Subject: [PATCH] Force all HTML tags to lower case. --- rdf/datasource/src/nsXULContentSink.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rdf/datasource/src/nsXULContentSink.cpp b/rdf/datasource/src/nsXULContentSink.cpp index efdeea9df50c..6ec18e35dc27 100644 --- a/rdf/datasource/src/nsXULContentSink.cpp +++ b/rdf/datasource/src/nsXULContentSink.cpp @@ -1041,6 +1041,9 @@ XULContentSinkImpl::AddAttributes(const nsIParserNode& aNode, } #endif + if (nameSpaceID == kNameSpaceID_HTML) + attr.ToLowerCase(); + // Get the URI for the namespace, so we can construct a // fully-qualified property name. mNameSpaceManager->GetNameSpaceURI(nameSpaceID, k); @@ -1075,6 +1078,7 @@ XULContentSinkImpl::OpenTag(const nsIParserNode& aNode) // HTML tags all need to be upper-cased if (nameSpaceID == kNameSpaceID_HTML) { + tag.ToLowerCase(); if (tag.Equals("script")) { return OpenScript(aNode); }