﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
160,Genshi builder incorrectly leaks namespace scope to children,ben@…,cmlenz,"{{{
#!python
from genshi.core import Namespace
from genshi.builder import Element
ns1 = Namespace(""http://ns1"")
ns2 = Namespace(""http://ns2"")

print str(Element(ns1.a)(Element(ns2.a)(), Element(ns2.b)(), Element(ns2.c)()))
}}}

Output: 
{{{
#!xml
<a xmlns=""http://ns1""><a xmlns=""http://ns2""/><b/><c/></a>
}}}

According to my understanding of the spec, specifically [http://www.w3.org/TR/REC-xml-names/#scoping the scoping and defaulting rules], this output is equivalent to

{{{
#!xml
<a xmlns=""http://ns1""><a xmlns=""http://ns2""/><b xmlns=""http://ns1""/><c xmlns=""http://ns1""/></a>
}}}

but the code should produce output equivalent to

{{{
#!xml
<a xmlns=""http://ns1""><a xmlns=""http://ns2""/><b xmlns=""http://ns2""/><c xmlns=""http://ns2""/></a>
}}}

",defect,new,major,0.9,General,devel,,,
