Skip to content

Commit 74179c2

Browse files
committed
Fix wrong determine boolean of the "hidden" attributes
a patch to 4009e1288a8138b2be2d235fec13f6206
1 parent d881a76 commit 74179c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ if(!('any' in Promise && typeof Promise.any == 'function'))
186186
}
187187
Object.defineProperty(HTMLElement.prototype, "hidden", {
188188
get: function () {
189-
return this.getAttribute("hidden") === "hidden";
189+
return this.hasAttribute("hidden");
190190
},
191191
set: function (h) {
192192
if (h)
@@ -195,7 +195,7 @@ Object.defineProperty(HTMLElement.prototype, "hidden", {
195195
this.removeAttribute("hidden");
196196
}
197197
});`;
198-
const hashBase = "'sha256-pOEaVVaEK6o32UQn317IBBwB7SAN3UAVryFcaB2EeXY='";
198+
const hashBase = "'sha256-S9vfb/mkBgBhAVBKLx3DRI8SDDSFSK6gcLJptX8RqDE='";
199199
const pfFollowUp = `(function () {
200200
// Ensure config dom.getRootNode.enabled is "false", or it would not work correctly
201201
if (Node.prototype.getRootNode === undefined) {

0 commit comments

Comments
 (0)