[Webkit-unassigned] [Bug 33509] selection.modify() should throw an exception if it receives invalid parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 12 10:21:01 PST 2010


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





--- Comment #16 from Justin Lebar <justin.lebar+bug at gmail.com>  2010-03-12 10:21:01 PST ---
I wonder how many websites actually use selection.modify() and rely on WebKit
not throwing when it receives bogus arguments.

For our part, we're not supporting some of the granularities (sentence,
sentenceboundary, paragraph, paragraphboundary, documentboundary) in Firefox,
so we're throwing an exception when we receive one of those.  If we're going to
throw in that case (and I think we have to in order to inform developers that
we don't support some of the granularities), I think it only makes sense for us
to throw when we receive nonsense arguments.

It would be great if we all could agree on one interface.

-- 
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