fix shadow host parsing issue (#1253)

This commit is contained in:
LawyZheng
2024-11-25 09:49:14 +08:00
committed by GitHub
parent 96d28564a0
commit 303153b305

View File

@@ -1234,6 +1234,11 @@ function buildElementTree(starter = document.body, frame, full_tree = false) {
const childElement = children[i];
processElement(childElement, shadowHostElement.id);
}
const selfChildren = getChildElements(element);
for (let i = 0; i < selfChildren.length; i++) {
const childElement = selfChildren[i];
processElement(childElement, shadowHostElement.id);
}
} else {
// For a non-interactable element, if it has direct text, we also tagged
// it with unique_id, but with interatable=false in the element.