JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix test serializer
[peach-html5-editor.git] / test.coffee
index 9035e5b..25712e2 100644 (file)
@@ -7955,7 +7955,7 @@ serialize_els = (els, prefix = '| ') ->
                                attr_keys.sort() # TODO this should be "lexicographically by UTF-16 code unit"
                                for k in attr_keys
                                        ret += "#{prefix}  #{k}=\"#{el.attrs[k]}\"\n"
-                               if el.name is 'template' # ?check ns
+                               if el.name is 'template' and el.namespace is wheic.NS_HTML
                                        ret += "#{prefix}  content\n"
                                        ret += serialize_els el.children, "#{prefix}    "
                                else