[Bug 28720] Interop: browsers already handle duplicate "fake" xmlns declarations during XML serialization

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28720

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #6 from Boris Zbarsky <bzbarsky@mit.edu> ---
> under the assumption that if it is needed it will be re-generated in a child
> element

For what it's worth, the Gecko behavior is premised on the assumption that if
you have a default namespace declaration (or indeed any namespace declaration)
then it should stay in place (since chances are descendants use it, and getting
rid of it will lead to a huge proliferation of xmlns attributes down the tree. 
So we do the minimal possible fixup within that constraint of just generating a
prefix and namespace declaration for the one element in question....

Maybe this doesn't matter too much if there are no practical cases in which an
element has a default namespace different from its own.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 29 May 2015 01:50:07 UTC