Fixes test associated with https://github.com/lightpanda-io/browser/pull/1827
This commit is contained in:
Karl Seguin
2026-03-16 07:16:27 +08:00
parent a204f40968
commit 0eb43fb530

View File

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