[editing] Selection API - difference between collpase() and setPosition (#94)

Hi All,

I am sorry if this question has been asked before.

I was going through Selection API https://w3c.github.io/selection-api/#widl-Selection-collapse-void-Node-node-unsigned-long-offset and came across these two functions collapse() and setPosition(). From what I can tell, they are identical in what they do.

Question:
It looks like it was added in this past year. Why was it added?

It seems redundant, unless I am missing something

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/94

Received on Thursday, 12 November 2015 18:59:01 UTC