Closed Bug 816012 Opened 9 years ago Closed 9 years ago
Script functions do not work properly on namespace-prefixed XHTML
http://www.w3.org/TR/DOM-Level-3-Core/ So Gecko does the correct thing per DOM 3 core. getElementsByTagName uses .tagName which includes the prefix. http://dom.spec.whatwg.org DOM spec say .localName should be used.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 492933
I'm not sure you actually had a look on my example. I am expecting getElementsByTagName to match the localpart, as said in the referenced DOM spec: > Thus, in an HTML document, document.getElementsByTagName("FOO") will match FOO elements that are not in the HTML namespace, and foo elements that are in the HTML namespace, but not FOO elements that are in the HTML namespace. This is certainly not the case in Firefox, otherwise my example would work. Am I totally misreading the proposed Duplicate and the spec?
Uhm, I'm sorry, didn't see the duplicate bug wasn't resolved yet. Ignore my comment and thanks for finding the dupe for me.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.