JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix tests: serialize namespaces
[peach-html5-editor.git] / test.coffee
index 9fe1293..274940b 100644 (file)
@@ -7796,7 +7796,12 @@ serialize_els = (els, prefix = '| ') ->
        for el in els
                switch el.type
                        when wheic.TYPE_TAG
-                               ret += "#{prefix}<#{el.name}>\n"
+                               ret += "#{prefix}<"
+                               if el.namespace is wheic.NS_MATHML
+                                       ret += "math "
+                               if el.namespace is wheic.NS_SVG
+                                       ret += "svg "
+                               ret += "#{el.name}>\n"
                                attr_keys = []
                                for k of el.attrs
                                        attr_keys.push k