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
<rdar://problem/22587044>
<rdar://problem/22559081>
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.
Created attachment 260986 [details] Patch
Comment on attachment 260986 [details] Patch Clearing flags on attachment: 260986 Committed r189618: <http://trac.webkit.org/changeset/189618>
All reviewed patches have been landed. Closing bug.