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"
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"
ret += "#{prefix} content\n"
ret += serialize_els el.children, "#{prefix} "
else
ret += serialize_els el.children, "#{prefix} "
ret += "#{prefix} content\n"
ret += serialize_els el.children, "#{prefix} "
else
ret += serialize_els el.children, "#{prefix} "
ret += "#{prefix}<!DOCTYPE #{el.name}"
if (el.public_identifier? and el.public_identifier.length > 0) or (el.system_identifier? and el.system_identifier.length > 0)
ret += " \"#{el.public_identifier ? ''}\""
ret += "#{prefix}<!DOCTYPE #{el.name}"
if (el.public_identifier? and el.public_identifier.length > 0) or (el.system_identifier? and el.system_identifier.length > 0)
ret += " \"#{el.public_identifier ? ''}\""
serialized = serialize_els parsed
if serialized isnt args.expected
test_results.failed += 1
if test_results.failed is 1
serialized = serialize_els parsed
if serialized isnt args.expected
test_results.failed += 1
if test_results.failed is 1