We were using the anchor_node() as the boundary point node when collapsing a selection, but the spec tells us to use the start and end boundary point nodes.