mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Implement DocumentFragment XML serialization.
This commit is contained in:
parent
dd2deeabca
commit
1dd1cb4f4f
3 changed files with 11 additions and 2 deletions
|
@ -642452,7 +642452,7 @@
|
|||
"support"
|
||||
],
|
||||
"domparsing/XMLSerializer-serializeToString.html": [
|
||||
"cb8ed9372df5e05588cbd593c40a8c13ee868bec",
|
||||
"23b9ce841f5046f180ce78d92d7ac1132712f999",
|
||||
"testharness"
|
||||
],
|
||||
"domparsing/createContextualFragment.html": [
|
||||
|
|
|
@ -204,6 +204,14 @@ test(function() {
|
|||
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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue