Handle nodes with mixed attributes and textContent.