WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
153112
createAttribute should lowercase the attribute name in a HTML document
https://bugs.webkit.org/show_bug.cgi?id=153112
Summary
createAttribute should lowercase the attribute name in a HTML document
Ryosuke Niwa
Reported
2016-01-14 16:06:15 PST
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.
Attachments
Fixes the bug
(33.24 KB, patch)
2016-01-15 19:29 PST
,
Ryosuke Niwa
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2016-01-15 19:29:15 PST
Created
attachment 269138
[details]
Fixes the bug
Darin Adler
Comment 2
2016-01-18 14:05:50 PST
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
Ryosuke Niwa
Comment 3
2016-01-18 23:37:42 PST
Committed
r195248
: <
http://trac.webkit.org/changeset/195248
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug