Add a bit of extra research on values
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 27 Jun 2011 15:26:27 -0600
changeset 327 1458537e4a06
parent 326 96c10e10a216
child 328 c80d1fc8bafd
Add a bit of extra research on values
editcommands.html
source.html
--- a/editcommands.html	Mon Jun 27 15:19:45 2011 -0600
+++ b/editcommands.html	Mon Jun 27 15:26:27 2011 -0600
@@ -381,6 +381,11 @@
 return a string, a majority of string-returners return the empty string, and
 three out of the four return something that evaluates to false as a boolean, so
 I'll go with Firefox and Opera.
+
+Actually, for commands like bold where state makes sense but not value, it
+looks like Chrome 14 dev makes the value equal to the state cast to a string,
+so either the string "true" or "false".  This seems confusing and unhelpful, so
+I'll pass.
 -->
 
 <p>When <code><a href=#execcommand()>execCommand()</a></code> is invoked, the user agent must follow the
--- a/source.html	Mon Jun 27 15:19:45 2011 -0600
+++ b/source.html	Mon Jun 27 15:26:27 2011 -0600
@@ -321,6 +321,11 @@
 return a string, a majority of string-returners return the empty string, and
 three out of the four return something that evaluates to false as a boolean, so
 I'll go with Firefox and Opera.
+
+Actually, for commands like bold where state makes sense but not value, it
+looks like Chrome 14 dev makes the value equal to the state cast to a string,
+so either the string "true" or "false".  This seems confusing and unhelpful, so
+I'll pass.
 -->
 
 <p>When <code>execCommand()</code> is invoked, the user agent must follow the