mirror of
https://github.com/morluto/rea.git
synced 2026-10-27 01:45:32 +00:00
fix(browser): carry unknown XML ancestry through metadata contracts
This commit is contained in:
1 parent
e84c58dabf
commit
e8d22ec9eb
2 files changed
+14
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user