parsing fixes for display:none elements