Add isVisibleElement and getBlockParent for lxmlutil