Example URL: http://jsbin.com/lesobugupi/2/edit?html,js,output Steps to reproduce the problem: 1. click on the hello text 2. see a 0 0 0 0 value in the output div What went wrong? range.getBoundingClientRect() should return a rect that denotes the range position even if it's collapsed, according to the spec http://www.w3.org/TR/cssom-view/#dom-range-getclientrects Especially the "including when the boundary-points are identical" part. Blink also has this problem. Works in gecko.
Blink has confirmed this bug. https://code.google.com/p/chromium/issues/detail?id=435438 I believe this bug exists pre-fork.
I am not able to reproduce this with Safari Technology Preview 153 and it does not show "0 0 0 0" value. I will tag others to confirm whether it is fixed it or not. Thanks!
*** This bug has been marked as a duplicate of bug 196380 ***