summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeaHOH <Seahoh@Gmail.com>2022-04-28 21:34:34 +0800
committerSeaHOH <Seahoh@Gmail.com>2022-04-28 21:34:34 +0800
commit74179c247f23cb02a6e7dc5780de09599855c485 (patch)
treedc7af54a0ba33ca7947272500f81d9380138b826
parentd881a7680d27baf12dc63a49949b07ad4b771156 (diff)
downloadgithub-wc-polyfill-74179c247f23cb02a6e7dc5780de09599855c485.tar.gz
Fix wrong determine boolean of the "hidden" attributes
a patch to 4009e1288a8138b2be2d235fec13f6206
-rw-r--r--bootstrap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap.js b/bootstrap.js
index 3f4f63e..45a18ab 100644
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -186,7 +186,7 @@ if(!('any' in Promise && typeof Promise.any == 'function'))
}
Object.defineProperty(HTMLElement.prototype, "hidden", {
get: function () {
- return this.getAttribute("hidden") === "hidden";
+ return this.hasAttribute("hidden");
},
set: function (h) {
if (h)
@@ -195,7 +195,7 @@ Object.defineProperty(HTMLElement.prototype, "hidden", {
this.removeAttribute("hidden");
}
});`;
-const hashBase = "'sha256-pOEaVVaEK6o32UQn317IBBwB7SAN3UAVryFcaB2EeXY='";
+const hashBase = "'sha256-S9vfb/mkBgBhAVBKLx3DRI8SDDSFSK6gcLJptX8RqDE='";
const pfFollowUp = `(function () {
// Ensure config dom.getRootNode.enabled is "false", or it would not work correctly
if (Node.prototype.getRootNode === undefined) {