Test-case: data:text/html,<!doctype html> <script> var val = document.queryCommandValue("quasit"); alert(typeof val + ' "' + val + '"'); </script> Chrome 20 dev alerts 'boolean "false"'. This means queryCommandValue() is returning a boolean, when it's specced to always return a string. Gecko now returns the empty string, per spec <https://bugzilla.mozilla.org/show_bug.cgi?id=742240#c18>. IE throws, which we decided in bug 83993 was not acceptable. WebKit should return the empty string here. This probably doesn't have big compat impact, because false == "" in JavaScript.
I will create a patch for this
Created attachment 142923 [details] ProposedPatch
Comment on attachment 142923 [details] ProposedPatch View in context: https://bugs.webkit.org/attachment.cgi?id=142923&action=review > LayoutTests/editing/execCommand/use-css.html:51 > testFailed("queryCommandValue('useCSS') should return boolean false"); Please update this comment as well.
Created attachment 142928 [details] Patch-Updated
(In reply to comment #3) > (From update of attachment 142923 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=142923&action=review > > > LayoutTests/editing/execCommand/use-css.html:51 > > testFailed("queryCommandValue('useCSS') should return boolean false"); > > Please update this comment as well. Done. I missed it.
Comment on attachment 142928 [details] Patch-Updated Clearing flags on attachment: 142928 Committed r117721: <http://trac.webkit.org/changeset/117721>
All reviewed patches have been landed. Closing bug.
Thanks for the review :)