Improve handling of non-display nodes (including styles, non-static content, etc) in page layout