X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=test.coffee;h=25712e206b973644d087fe3bd575fef28ac025a1;hb=5b029dbddc0914968b43f8ba68e171cd53d34ba4;hp=9035e5b6220f4784f0d1638fedcc1871127a7b6e;hpb=24331bc37c487e39e9501c79dca4e01e8b8b95f1;p=peach-html5-editor.git diff --git a/test.coffee b/test.coffee index 9035e5b..25712e2 100644 --- a/test.coffee +++ b/test.coffee @@ -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