[Webkit-unassigned] [Bug 36683] For compatibility, execCommand should support deprecated 'useCSS' alias for 'styleWithCSS'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 12 14:17:58 PDT 2011


--- Comment #20 from Ryosuke Niwa <rniwa at webkit.org>  2011-09-12 14:17:58 PST ---
(In reply to comment #19)
> Gecko doesn't support state for either styleWithCSS or useCSS, so there's no compatibility reason to support queryCommandState("useCSS").  The spec doesn't define any indeterm/state/value for useCSS, which means that queryCommand(Indeterm|State|Value)("useCSS") is supposed to throw INVALID_ACCESS_ERR.  This basically matches Gecko, which also throws an exception, but of a nonstandard type (NS_ERROR_FAILURE).

Thanks for the clarification.

However, since we throw any exceptions in queryCommand*, we probably should just return false here (i.e. just give use stateNone instead of stateStyleWithCSS).

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