[Webkit-unassigned] [Bug 278290] "InvalidStateError: The object is in an invalid state" is not very helpful

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 25 18:02:56 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=278290

--- Comment #8 from Karl Dubost <karlcow at apple.com> ---
If you open a new bug with a test case for collapsetoend, this is the spec reference.
https://w3c.github.io/selection-api/#dom-selection-collapsetoend

> collapseToEnd() method
> The method must throw InvalidStateError exception if the this is empty. Otherwise, it must create a new range, set the start both its start and end to the end of this's range, and then set this's range to the newly-created range.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240826/d8335e32/attachment.htm>


More information about the webkit-unassigned mailing list