vanilla 17.0

This commit is contained in:
Ernad Husremovic 2025-10-08 10:47:08 +02:00
parent d72e748793
commit a9bcec8e91
1986 changed files with 1613876 additions and 568976 deletions

View file

@ -23,12 +23,14 @@
function isElement(node) {
var OwnElement = getWindow(node).Element;
return node instanceof OwnElement || node instanceof Element;
return node instanceof OwnElement || node.nodeType === Node.ELEMENT_NODE;
}
function isHTMLElement(node) {
var OwnElement = getWindow(node).HTMLElement;
return node instanceof OwnElement || node instanceof HTMLElement;
// Updated to handle checks of HTMLElement created in a different document
// which is required to position the colorpicker correctly.
return node instanceof OwnElement || node.nodeType === Node.ELEMENT_NODE;
}
function isShadowRoot(node) {