diff --git a/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html b/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html
index 81df61f5bc428..cb8ed9372df5e 100644
--- a/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html
+++ b/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html
@@ -45,6 +45,15 @@
domparsing_XMLSerializer_serializeToString
assert_equals(serialize(root), 'value1');
}, 'Check if there is no redundant empty namespace declaration.');
+test(function() {
+ assert_equals(serialize(parse('')),
+ '');
+ assert_equals(serialize(parse('')),
+ '');
+ assert_equals(serialize(parse('')),
+ '');
+}, 'Check if redundant xmlns="..." is dropped.');
+
test(function() {
const root = parse('');
const child = root.ownerDocument.createElement('child');
@@ -145,8 +154,6 @@ domparsing_XMLSerializer_serializeToString
test(function() {
assert_equals(serialize(parse('')), '');
- assert_equals(serialize(parse('')), '');
- assert_equals(serialize(parse('')), '');
assert_equals(serialize(parse('')), '');
}, 'Check if start tag serialization drops element prefix if the namespace is same as inherited default namespace.');