Added Tip get properties in dom

There is a small bug in these code