Created attachment 40232 [details] removeformat editor command removes formatting and comments. removeformat editor command removes formatting and comments. Check attachment for reproduction. Have the following HTML inside a contenteditable element: Some <span style="font-weight: bold">bold text with a <!-- comment 1 -->comment </span> and some text after After execCommand('formatblock', false, 'h1') the result is: <h1>Some bold text with a comment and some text after</h1>
Expected results: <h1>Some <span style="font-weight: bold;">bold text with a <!-- comment 1 -->comment </span> and some text after</h1>
Cannot reproduce in Chrome 15.0.849.0 dev. The test-case behaves as expected, preserving all the markup inside.
(In reply to comment #2) > Cannot reproduce in Chrome 15.0.849.0 dev. The test-case behaves as expected, preserving all the markup inside. Oh yes, I must have fixed this last year.