changeset 458:5f5b227b04be trunk

The `ET()` function now correctly handles attributes with a namespace.
author cmlenz
date Tue, 17 Apr 2007 18:35:29 +0000
parents 4b6dc4978691
children 75425671b437
files ChangeLog genshi/input.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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:
Copyright (C) 2012-2017 Edgewall Software