Created attachment 95515 [details] Test case Running document.execCommand("Bold", false, null) on the following selected HTML <p>1</p> <p>2</p> ... mutates that HTML into <p><b>1</b></p> <p><b>2</b></p> Running the same command has no effect. However, running the same command on <p>1</p><p>2</p> ... mutates that HTML into <p><b>1</b></p><p><b>2</b></p> ... and running the command again returns the HTML to its original state. This suggest one possible cause is that the code mutating the HTML is ignoring the whitespace text node while the code for checking whether the selection is already bold is not ignoring the whitespace text node.
All three test cases work properly on WebKit ToT. Can you tell us which revision of WebKit reproduces this bug?
Chrome 11.0.696.68. However, it's fixed in the latest nightly build. Sorry.