module.exports.TYPE_TEXT = TYPE_TEXT
module.exports.TYPE_COMMENT = TYPE_COMMENT
module.exports.TYPE_DOCTYPE = TYPE_DOCTYPE
+module.exports.NS_HTML = NS_HTML
+module.exports.NS_MATHML = NS_MATHML
+module.exports.NS_SVG = NS_SVG
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