[Webkit-unassigned] [Bug 86964] New: Unsupported commands should have queryCommandValue() = "", not false
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 20 07:59:01 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86964
Summary: Unsupported commands should have queryCommandValue() =
"", not false
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ayg at aryeh.name
CC: ap at webkit.org
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.
--
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