id summary reporter owner description type status priority milestone component version resolution keywords cc 9093 Enter command is broken (different behavior between browsers) Piotrek Koszuliński "== TC1 == 1. Open replacebyclass sample. 2. Set content: {{{

aaa

bbb

ccc

}}}. 3. Select second paragraph (with mouse or keyboard). 4. Press enter. Expected: when EOL visually not selected (visual EOL selection is possible only on Webkits) enter command should remove content of selected paragraph (leaving the tag) and then create new one below. Expected content: {{{

aaa

 

ccc

}}} Actual: Ok on Firefox, ok on IE, Visually broken on Chrome and Opera. They remove content of paragraph and create new one but this new paragraph is not visible (See image). Only after you switch to source and back second paragraph is visually added. == TC2 == Steps as in TC1. but select with EOL preceding second paragraph. Expected: EOL is selected, so delete it with the content (move caret to {{{

aaa^

}}} and then create new paragraph. I’m not sure why but this can be reproduced in all browsers – Just select {{{a bbb}} and press SHIFT+right arrow. Expected content: {{{

aaa

ccc

}}} Actual: Visually it works in all browsers but if you switch to source and back you will see that new extra paragraph is added. All browsers delete contents of existing paragraph and add new one (Can be checked with E.g. Firebug) but it is only visible when switching to source and back. == TC3 (Webkit only) == Steps as in TC1. but select with EOL succeeding second paragraph. Expected: EOL is selected, so delete it with the content (move caret to {{{

^ccc

}}} and then create new paragraph. I’m not sure why but this can be reproduced in all browsers – Just select {{{a bbb}} and press SHIFT+right arrow. Expected content: {{{

aaa

 

^ccc

}}} Actual: Visually it works in all browsers but if you switch to source and back you will see that new extra paragraph is added. All browsers delete contents of existing paragraph and add new one (Can be checked with E.g. Firebug) but it is only visible when switching to source and back. == TC4 == I've got the following results when running these TCs (The same as for manual tests): {{{ 'test Enter key for paragraphs 1' : function() { var bot = this.editorBot; bot.setHtmlWithSelection( '

bam

[foo]

bar

' ); bot.execCommand( 'enter' ); assert.areSame( '

bam

 

 

bar

', bot.getData( false, true ) ); }, 'test Enter key for paragraphs 2a' : function() { var bot = this.editorBot; bot.setHtmlWithSelection( '

bam

[

foo

]

bar

' ); bot.execCommand( 'enter' ); assert.areSame( '

bam

 

 

bar

', bot.getData( false, true ) ); }, 'test Enter key for paragraphs 2b' : function() { var bot = this.editorBot; bot.setHtmlWithSelection( '[

foo

]

bar

' ); bot.execCommand( 'enter' ); assert.areSame( '

 

 

bar

', bot.getData( false, true ) ); } }}} " Bug confirmed Normal General 3.0