fix no escape + child node
2 files changed, 2 insertions(+), 3 deletions(-)

M pml.py
M tests/test_html.py
M pml.py +1 -1
@@ 314,7 314,7 @@ class HTML(object):
             if escape:
                 self._content = list(map(cgi.escape, content))
             else:
-                self._content = content
+                self._content = list(content)
         if 'newlines' in kw:
             # special-case to allow control over newlines
             self._newlines = kw.pop('newlines')

          
M tests/test_html.py +1 -2
@@ 88,8 88,7 @@ class TestCase(unittest.TestCase):
         self.assertEquals(str(h), '<>&')
 
         with h.p('hello', escape=False) as p:
-            with self.assertRaises(AttributeError):
-                p.a('world', href='http://perdu.com')
+            p.a('world', href='http://perdu.com')
 
     def test_escape_attr(self):
         'escaping of special HTML characters in attributes'