Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix tests: serialize namespaces
[peach-html5-editor.git]
/
test.coffee
diff --git
a/test.coffee
b/test.coffee
index
9fe1293
..
274940b
100644
(file)
--- 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
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
attr_keys = []
for k of el.attrs
attr_keys.push k