X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=test.coffee;h=274940b8a320e500bd764ee45063f3782591d40f;hb=159b16dfd40020904dad07dd2643aaeb849187f4;hp=9fe1293293b5e5e9fcac59471e53492e41a73a87;hpb=102de4d636d26e23cb412e7589950020bb484d80;p=peach-html5-editor.git diff --git a/test.coffee b/test.coffee index 9fe1293..274940b 100644 --- a/test.coffee +++ b/test.coffee @@ -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