Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"type": "module",
"scripts": {
"build": "deno build.ts --tagName 1.70.1b5 > ubo.js",
"build": "deno build.ts --tagName 1.70.1rc0 > ubo.js",
"test": "node --test"
},
"author": {
Expand Down
14 changes: 10 additions & 4 deletions ubo.js
Original file line number Diff line number Diff line change
Expand Up @@ -21573,12 +21573,15 @@ function freezeElementProperty(
const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern);
const matcher = safe.initPattern(pattern, { canNegate: true });
const owner = (( ) => {
if ( Object.hasOwn(Element.prototype, property) ) {
return Element.prototype;
if ( Object.hasOwn(HTMLScriptElement.prototype, property) ) {
return HTMLScriptElement.prototype;
}
if ( Object.hasOwn(HTMLElement.prototype, property) ) {
return HTMLElement.prototype;
}
if ( Object.hasOwn(Element.prototype, property) ) {
return Element.prototype;
}
if ( Object.hasOwn(Node.prototype, property) ) {
return Node.prototype;
}
Expand Down Expand Up @@ -21822,12 +21825,15 @@ function freezeElementProperty(
const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern);
const matcher = safe.initPattern(pattern, { canNegate: true });
const owner = (( ) => {
if ( Object.hasOwn(Element.prototype, property) ) {
return Element.prototype;
if ( Object.hasOwn(HTMLScriptElement.prototype, property) ) {
return HTMLScriptElement.prototype;
}
if ( Object.hasOwn(HTMLElement.prototype, property) ) {
return HTMLElement.prototype;
}
if ( Object.hasOwn(Element.prototype, property) ) {
return Element.prototype;
}
if ( Object.hasOwn(Node.prototype, property) ) {
return Node.prototype;
}
Expand Down
Loading