--- a/wp/wp-includes/js/dist/vendor/wp-polyfill-inert.js Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/js/dist/vendor/wp-polyfill-inert.js Fri Sep 05 18:52:52 2025 +0200
@@ -15,7 +15,7 @@
(function () {
// Return early if we're not running inside of the browser.
- if (typeof window === 'undefined') {
+ if (typeof window === 'undefined' || typeof Element === 'undefined') {
return;
}
@@ -30,7 +30,7 @@
var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;
/** @type {string} */
- var _focusableElementsString = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'details', 'summary', 'iframe', 'object', 'embed', '[contenteditable]'].join(',');
+ var _focusableElementsString = ['a[href]', 'area[href]', 'input:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'details', 'summary', 'iframe', 'object', 'embed', 'video', '[contenteditable]'].join(',');
/**
* `InertRoot` manages a single inert subtree, i.e. a DOM subtree whose root element has an `inert`