Selection.collapseToStart() and Selection.collapseToEnd() should throw INVALID_STATE_ERR if no selection is made. This would cause us to pass the following test on IE Test Center: http://samples.msdn.microsoft.com/ietestcenter/html5/selection/emptyselection_invalidStateErr.htm Spec links: http://www.whatwg.org/specs/web-apps/current-work/#dom-selection-collapsetostart http://www.whatwg.org/specs/web-apps/current-work/#dom-selection-collapsetoend
Created attachment 65396 [details] Proposed patch
Do these raise an exception in Firefox? Raising exceptions where we didn't use to can be a significant compatibility issue, because if any page depended on the old behavior, it often stops working completely.
(In reply to comment #2) > Do these raise an exception in Firefox? No, only IE9 implements this behavior so far AFAIK.
Comment on attachment 65396 [details] Proposed patch Clearing flags on attachment: 65396 Committed r66590: <http://trac.webkit.org/changeset/66590>
All reviewed patches have been landed. Closing bug.