fixed visible rendering in DomElement and added tests