WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148843
Element.tagName should be upper-case for HTML elements in HTML documents
https://bugs.webkit.org/show_bug.cgi?id=148843
Summary
Element.tagName should be upper-case for HTML elements in HTML documents
Ryosuke Niwa
Reported
2015-09-04 16:22:15 PDT
When creating an element with createElementNS, we should not preserve the cases. e.g. document.createElementNS(HTMLNS, "html:table").tagName should be "HTML:TABLE" instead of "html:table". See
https://dom.spec.whatwg.org/#dom-document-createelementns
This bug was found by the newly added test: LayoutTests/http/tests/w3c/html/semantics/tabular-data/the-table-element/table-insertRow.html
Attachments
Patch
(9.74 KB, patch)
2015-09-10 21:03 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-09-04 16:24:02 PDT
<
rdar://problem/22587044
>
Ryosuke Niwa
Comment 2
2015-09-04 16:25:36 PDT
<
rdar://problem/22559081
>
Ryosuke Niwa
Comment 3
2015-09-04 16:31:43 PDT
document.implementation.createDocument("
http://www.w3.org/1999/xhtml
", "div", null).createElementNS("
http://www.w3.org/1999/xhtml
", "i").tagName fails but document.createElementNS("
http://www.w3.org/1999/xhtml
", "i").tagName successfully upper-cases the tag name so there's some XHTML document weirdness going on here.
Chris Dumez
Comment 4
2015-09-10 21:03:52 PDT
Created
attachment 260986
[details]
Patch
WebKit Commit Bot
Comment 5
2015-09-11 07:51:44 PDT
Comment on
attachment 260986
[details]
Patch Clearing flags on attachment: 260986 Committed
r189618
: <
http://trac.webkit.org/changeset/189618
>
WebKit Commit Bot
Comment 6
2015-09-11 07:51:49 PDT
All reviewed patches have been landed. Closing bug.
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