re-add several label element to the element tree (#1429)
This commit is contained in:
@@ -1548,7 +1548,8 @@ function buildElementTree(starter = document.body, frame, full_tree = false) {
|
|||||||
if (
|
if (
|
||||||
labelElement &&
|
labelElement &&
|
||||||
labelElement.childElementCount === 0 &&
|
labelElement.childElementCount === 0 &&
|
||||||
!labelElement.getAttribute("for")
|
!labelElement.getAttribute("for") &&
|
||||||
|
!element.text
|
||||||
) {
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user