# HG changeset patch # User cmlenz # Date 1176835497 0 # Node ID ce59beb0d29baea077a50644cc66ca8bd9dc1b77 # Parent 23b53d6273fde7b1813c0c1aaa9b38d487fe9cee Port [554] to stable. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ (?, from branches/stable/0.4.x) * Fix incorrect reference to translation function in the I18N filter. + * The `ET()` function now correctly handles attributes with a namespace. Version 0.4 diff --git a/genshi/input.py b/genshi/input.py --- a/genshi/input.py +++ b/genshi/input.py @@ -39,7 +39,8 @@ :return: a markup stream """ tag_name = QName(element.tag.lstrip('{')) - attrs = Attrs([(QName(attr), value) for attr, value in element.items()]) + attrs = Attrs([(QName(attr.lstrip('{')), value) + for attr, value in element.items()]) yield START, (tag_name, attrs), (None, -1, -1) if element.text: