fix up html rules

This commit is contained in:
Percs 2024-10-27 03:36:13 -05:00
parent 2b9afa1068
commit 559e5463ba
2 changed files with 5 additions and 0 deletions

View file

@ -238,6 +238,7 @@ export class ScramjetClient {
const prop = split.pop(); const prop = split.pop();
const target = split.reduce((a, b) => a?.[b], this.global); const target = split.reduce((a, b) => a?.[b], this.global);
if (!target) return; if (!target) return;
const original = Reflect.get(target, prop); const original = Reflect.get(target, prop);
this.natives[name] = original; this.natives[name] = original;

View file

@ -147,7 +147,10 @@ export const htmlRules: {
// csp stuff that must be deleted // csp stuff that must be deleted
nonce: "*", nonce: "*",
crossorigin: "*",
"http-equiv": ["meta"],
integrity: ["script", "link"], integrity: ["script", "link"],
sandbox: ["iframe"],
csp: ["iframe"], csp: ["iframe"],
}, },
{ {
@ -155,6 +158,7 @@ export const htmlRules: {
// srcset // srcset
srcset: ["img", "source"], srcset: ["img", "source"],
srcSet: ["img", "source"],
imagesrcset: ["link"], imagesrcset: ["link"],
}, },
{ {