revert domparser test change that belongs to a different PR

This commit is contained in:
Karl Seguin
2026-03-16 07:11:06 +08:00
parent 4d60f56e66
commit a9d044ec10

View File

@@ -11,9 +11,9 @@
} }
{ {
// Empty XML is a parse error (no root element)
const parser = new DOMParser(); const parser = new DOMParser();
let d = parser.parseFromString('', 'text/xml'); testing.expectError('Error', () => parser.parseFromString('', 'text/xml'));
testing.expectEqual('<parsererror>error</parsererror>', new XMLSerializer().serializeToString(d));
} }
} }
</script> </script>