From b073e6c9c26eef531ea3bdc3b6c6fd349f2bb9d4 Mon Sep 17 00:00:00 2001 From: Jack Britton Date: Fri, 12 Apr 2019 16:08:00 +0000 Subject: [PATCH] Add test case. --- domparsing/XMLSerializer-serializeToString.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/domparsing/XMLSerializer-serializeToString.html b/domparsing/XMLSerializer-serializeToString.html index cb8ed9372df5e05..23b9ce841f5046f 100644 --- a/domparsing/XMLSerializer-serializeToString.html +++ b/domparsing/XMLSerializer-serializeToString.html @@ -204,6 +204,14 @@

domparsing_XMLSerializer_serializeToString

assert_equals(serialize(root2), ''); }, '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), '
'); +}, 'Check if document fragment serializes.'); + +