Implement step 2 in: https://dom.spec.whatwg.org/#dom-document-createattribute The createAttribute(localName) method, when invoked, must run these steps: 1. If localName does not match the Name production in XML, throw an InvalidCharacterError exception. 2. If the context object is an HTML document, let localName be converted to ASCII lowercase. 3. Return a new attribute whose local name is localName.
Created attachment 269138 [details] Fixes the bug
Comment on attachment 269138 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=269138&action=review > Source/WebCore/ChangeLog:8 > + In a HTML document, we should always lowercase localName in document.createAttribute as specifid in Typo: specified
Committed r195248: <http://trac.webkit.org/changeset/195248>