Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 116247e4c2fc00350ce0e72da6c5148563fbbfff..0a184161d36a93769c999e0bd674ffd71699bc72 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -5014,10 +5014,8 @@ Document* Document::contextDocument() { |
Attr* Document::createAttribute(const AtomicString& name, |
ExceptionState& exceptionState) { |
- if (isHTMLDocument() && name != name.lower()) |
- UseCounter::count(*this, |
- UseCounter::HTMLDocumentCreateAttributeNameNotLowercase); |
- return createAttributeNS(nullAtom, name, exceptionState, true); |
+ return createAttributeNS(nullAtom, convertLocalName(name), exceptionState, |
+ true); |
} |
Attr* Document::createAttributeNS(const AtomicString& namespaceURI, |