MOBILE-3320 runtime: Ignore invalid nodes in find
parent
778298a455
commit
d7593ab5c1
|
@ -292,7 +292,13 @@
|
|||
|
||||
if (currentNode.shadowRoot) {
|
||||
for (const childNode of currentNode.shadowRoot.childNodes) {
|
||||
if (!childNode) {
|
||||
if (
|
||||
!(childNode instanceof HTMLElement) || (
|
||||
childNode instanceof HTMLStyleElement ||
|
||||
childNode instanceof HTMLLinkElement ||
|
||||
childNode instanceof HTMLScriptElement
|
||||
)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue