Bug 11878

Summary: REGRESSION: An exception is raised by element.style.cursor = "-moz-grab"
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal Keywords: Regression
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: javascript:document.body.style.cursor = "-moz-grab";alert("SUCCESS")

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.