}, {
name: "template.dat #108"
html: "<template><a><table><a>"
- expected: "| <html>\n| <head>\n| <template>\n| content\n| <a>\n| <a>\n| <table>\n| <body>"
+ expected: "| <html>\n| <head>\n| <template>\n| content\n| <a>\n| <a>\n| <table>\n| <body>\n"
}, {
name: "tests10.dat #1"
html: "<!DOCTYPE html><svg></svg>"
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