[fix] issue where no-text elements would yield text