mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 23:10:02 -04:00
fix up html rules
This commit is contained in:
parent
2b9afa1068
commit
559e5463ba
2 changed files with 5 additions and 0 deletions
|
@ -238,6 +238,7 @@ export class ScramjetClient {
|
|||
const prop = split.pop();
|
||||
const target = split.reduce((a, b) => a?.[b], this.global);
|
||||
if (!target) return;
|
||||
|
||||
const original = Reflect.get(target, prop);
|
||||
this.natives[name] = original;
|
||||
|
||||
|
|
|
@ -147,7 +147,10 @@ export const htmlRules: {
|
|||
|
||||
// csp stuff that must be deleted
|
||||
nonce: "*",
|
||||
crossorigin: "*",
|
||||
"http-equiv": ["meta"],
|
||||
integrity: ["script", "link"],
|
||||
sandbox: ["iframe"],
|
||||
csp: ["iframe"],
|
||||
},
|
||||
{
|
||||
|
@ -155,6 +158,7 @@ export const htmlRules: {
|
|||
|
||||
// srcset
|
||||
srcset: ["img", "source"],
|
||||
srcSet: ["img", "source"],
|
||||
imagesrcset: ["link"],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue