yuntaozhu / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Fix up range's getStartPosition/getEndPosition #615

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
https://codereview.appspot.com/42640043/

getStartPosition is documented to get the point of the start node, but it 
doesn't actually do that. It currently gets the position of the anchor node. I 
fixed this.

I also fixed another bugs, where it was assuming the relative positions of the 
start and end nodes.

Original issue reported on code.google.com by Nicholas.J.Santos on 16 Dec 2013 at 5:18