Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: Source/core/dom/Document.cpp

Issue 442343002: Creating custom element should not be case sensitive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index d721e4f70ef5cc5e9ed19d164121c13196463f12..0782edfb0cc0f597381a34bf5c8b8c6acf382fba 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -780,7 +780,7 @@ PassRefPtrWillBeRawPtr<Element> Document::createElement(const AtomicString& loca
RefPtrWillBeRawPtr<Element> element;
if (CustomElement::isValidName(localName) && registrationContext()) {
- element = registrationContext()->createCustomTagElement(*this, QualifiedName(nullAtom, localName, xhtmlNamespaceURI));
+ element = registrationContext()->createCustomTagElement(*this, QualifiedName(nullAtom, isHTMLDocument() ? localName.lower() : localName, xhtmlNamespaceURI));
dominicc (has gone to gerrit) 2014/08/11 06:05:27 Could we factor out a little function and eliminat
deepak.sa 2014/08/11 10:32:50 Done.
} else {
element = createElement(localName, exceptionState);
if (exceptionState.hadException())

Powered by Google App Engine
This is Rietveld 408576698