Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIncorrect `namespaceURI`. #5585
Comments
|
Right now the namespace for each element in provided in the constructor and is immutable. @kmcallister is this something that h5e should be providing, or should the DOM be watching for setting the xmlns attribute and updating the associated namespace? |
|
servo/html5ever#120 should fix this. |
|
By the way, how does changing namespace work? I mean, one can modify xmlns attribute of a node and this information is propagated to the whole subtree. Which operation is slow: setting xmlns or getting xmlns? I can imagine either setting xmlns traverses the whole subtree or getting namespace traverses the tree up to the first parent that has its namespace set (via xmlns or prefix). |
|
Oh, apparently namespace is not modifiable. See: https://developer.mozilla.org/en-US/docs/Web/API/Node/namespaceURI:
|
|
This appears to work correctly on master. Am I missing anything? |
Trying to fix the simple #1745 issue I've found that the following
returns
http://www.w3.org/1999/xhtml. Firefox, chrome andtests/wpt/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtmlshow/wanthttp://www.w3.org/2000/svg.