From a6564588567a14ebc4bfa4e50358f1c32e3b10d7 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 13 Jun 2020 15:40:28 -0700 Subject: Run dist on latest --- dist/js/bootstrap.bundle.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dist/js/bootstrap.bundle.js') diff --git a/dist/js/bootstrap.bundle.js b/dist/js/bootstrap.bundle.js index b950a89d0..cff80ecbf 100644 --- a/dist/js/bootstrap.bundle.js +++ b/dist/js/bootstrap.bundle.js @@ -106,7 +106,7 @@ var getUID = function getUID(prefix) { do { - prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here + prefix += Math.floor(Math.random() * MAX_UID); } while (document.getElementById(prefix)); return prefix; @@ -5506,6 +5506,8 @@ this._element.setAttribute('aria-modal', true); + this._element.setAttribute('role', 'dialog'); + this._element.scrollTop = 0; if (modalBody) { @@ -5593,6 +5595,8 @@ this._element.removeAttribute('aria-modal'); + this._element.removeAttribute('role'); + this._isTransitioning = false; this._showBackdrop(function () { @@ -5923,7 +5927,7 @@ if (allowedAttributeList.indexOf(attrName) !== -1) { if (uriAttrs.indexOf(attrName) !== -1) { - return SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue); + return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)); } return true; @@ -5934,7 +5938,7 @@ }); // Check if a regular expression validates the attribute. for (var i = 0, len = regExp.length; i < len; i++) { - if (regExp[i].test(attrName)) { + if (attrName.match(regExp[i])) { return true; } } -- cgit v1.2.3