fix(browser): carry unknown XML ancestry through metadata contracts

This commit is contained in:
morluto committed 2026-10-14 09:54:58 +08:00
1 parent e84c58dabf
commit e8d22ec9eb
2 files changed
+14 -2

No files matched your search

+13 -1
View File
@@ -139,7 +139,19 @@ describe("CDP DOM string and namespace validity", () => {
{ field: "attributeValue", index: 20 },
] as const)(
"omits a node when its $field string index is invalid ($index)",
({ field, index, malformedString }) => {
({
field,
index,
malformedString,
}: {
readonly field:
| "nodeName"
| "nodeValue"
| "attributeName"
| "attributeValue";
readonly index: number;
readonly malformedString?: boolean;
}) => {
const strings: unknown[] = [
origin + "/app",
"#document",
+1 -1
View File
@@ -561,7 +561,7 @@ interface DomMetadataOptions {
readonly nodeName: string;
readonly allowedOrigins: ReadonlySet<string>;
readonly svgElement: boolean;
readonly xmlDocument: boolean;
readonly xmlDocument: boolean | undefined;
readonly xlinkHref: string | undefined;
}