@@ -21573,12 +21573,15 @@ function freezeElementProperty(
2157321573 const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern);
2157421574 const matcher = safe.initPattern(pattern, { canNegate: true });
2157521575 const owner = (( ) => {
21576- if ( Object.hasOwn(Element .prototype, property) ) {
21577- return Element .prototype;
21576+ if ( Object.hasOwn(HTMLScriptElement .prototype, property) ) {
21577+ return HTMLScriptElement .prototype;
2157821578 }
2157921579 if ( Object.hasOwn(HTMLElement.prototype, property) ) {
2158021580 return HTMLElement.prototype;
2158121581 }
21582+ if ( Object.hasOwn(Element.prototype, property) ) {
21583+ return Element.prototype;
21584+ }
2158221585 if ( Object.hasOwn(Node.prototype, property) ) {
2158321586 return Node.prototype;
2158421587 }
@@ -21822,12 +21825,15 @@ function freezeElementProperty(
2182221825 const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern);
2182321826 const matcher = safe.initPattern(pattern, { canNegate: true });
2182421827 const owner = (( ) => {
21825- if ( Object.hasOwn(Element .prototype, property) ) {
21826- return Element .prototype;
21828+ if ( Object.hasOwn(HTMLScriptElement .prototype, property) ) {
21829+ return HTMLScriptElement .prototype;
2182721830 }
2182821831 if ( Object.hasOwn(HTMLElement.prototype, property) ) {
2182921832 return HTMLElement.prototype;
2183021833 }
21834+ if ( Object.hasOwn(Element.prototype, property) ) {
21835+ return Element.prototype;
21836+ }
2183121837 if ( Object.hasOwn(Node.prototype, property) ) {
2183221838 return Node.prototype;
2183321839 }
0 commit comments