Skip to content

Commit

Permalink
Add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackxbritton authored and Servo WPT Sync committed Apr 12, 2019
1 parent 1471c49 commit b073e6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions domparsing/XMLSerializer-serializeToString.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ <h1>domparsing_XMLSerializer_serializeToString</h1>
assert_equals(serialize(root2), '<root xmlns:xl="http://www.w3.org/1999/xlink" xl:type="v"/>');
}, 'Check if no special handling for XLink namespace unlike HTML serializer.');

test(function() {
var root = new DocumentFragment;
root.append(document.createElement('div'));
root.append(document.createElement('span'));
assert_equals(serialize(root), '<div xmlns="http://www.w3.org/1999/xhtml"></div><span xmlns="http://www.w3.org/1999/xhtml"></span>');
}, 'Check if document fragment serializes.');


</script>
</body>
</html>

0 comments on commit b073e6c

Please sign in to comment.