Bug 11878 - REGRESSION: An exception is raised by element.style.cursor = "-moz-grab"
Summary: REGRESSION: An exception is raised by element.style.cursor = "-moz-grab"
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Nobody
URL: javascript:document.body.style.cursor...
Keywords: Regression
Depends on:
Blocks:
 
Reported: 2006-12-19 11:19 PST by Alexey Proskuryakov
Modified: 2007-01-05 08:35 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2006-12-19 11:19:49 PST
Bug 7296 enabled exceptions for invalid CSS values being set via DOM.

This has caused a problem with Mozilla-only cursors: Mozilla (of course) supports those, and IE has a quirk that lets it handle them without raising an exception. In IE, "-moz-grab" is treated as "url(-moz-grab)". Moreover, "url(foobar), -moz-grab" is also parsed "successfully" somehow.

So, WebKit is the odd one raising an exception now. This can be fixed by adding support for those cursors (bug 8988) or by implementing an IE-style parsing quirk.
Comment 1 Alexey Proskuryakov 2007-01-05 08:35:21 PST
It was decided that exceptions shouldn't be raised for invalid values, so this is a non-issue.