document.getBoxObjectFor(element)

versus element.getBoundingClientRect()
div

p1

p2 span and a href

form
td 1td 2td 3
AttributesBoxObjectClientRect
(x, y) : ()
(left,top): ()
width x height :