#1744 consolidate to collectElement in document.rs