[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 13:50:01 PDT 2011


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





--- Comment #19 from Aryeh Gregor <ayg at aryeh.name>  2011-09-12 13:50:01 PST ---
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).

I added a note to make this clearer:

http://aryeh.name/gitweb.cgi?p=editing;a=commitdiff;h=7928c688
http://aryeh.name/spec/editing/editing.html#the-usecss-command

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