Bugzilla – Bug 163
Make it a parse error to have incorrect xmlns='' attributes.
Last modified: 2008-06-25 15:32:47 CEST
Index: source =================================================================== --- source (revision 1414) +++ source (revision 1415) @@ -42173,6 +42173,11 @@ <p><span>Insert a foreign element</span> for the token, in the same namespace as the <span>current node</span>.</p> + <p>If the element has an <code title="">xmlns</code> attribute in + the <span>XMLNS namespace</span> whose value is not exactly the + same as the element's namespace, that is a <span>parse + error</span>.</p> + <p>If the token has its <i>self-closing flag</i> set, pop the <span>current node</span> off the <span>stack of open elements</span> and <span title="acknowledge self-closing