[Webkit-unassigned] [Bug 33510] selection.modify() should throw an exception if the selection does not have a range or is detached

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 11 20:20:14 PST 2010


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


Mats Palmgren <matspal at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matspal at gmail.com




--- Comment #1 from Mats Palmgren <matspal at gmail.com>  2010-01-11 20:20:14 PST ---
DOMException INVALID_STATE_ERR is used in HTML5 Selection
when there's something wrong with the selection range:
http://www.whatwg.org/specs/web-apps/current-work/#selection-0

and in DOM-Level-2-Traversal-Range when using a detached range:
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-idl

so INVALID_STATE_ERR seems like the appropriate exception to use here.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list