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

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

Issue 1747403002: Make Document.createAttribute lowercase the name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 1 month 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: 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,

Powered by Google App Engine
This is Rietveld 408576698