re-add several label element to the element tree (#1429)

This commit is contained in:
LawyZheng
2024-12-24 02:44:09 +08:00
committed by GitHub
parent 501ab7f9a1
commit aad741d8de

View File

@@ -1548,7 +1548,8 @@ function buildElementTree(starter = document.body, frame, full_tree = false) {
if (
labelElement &&
labelElement.childElementCount === 0 &&
!labelElement.getAttribute("for")
!labelElement.getAttribute("for") &&
!element.text
) {
continue;
}