id summary reporter owner description type status priority milestone component version resolution keywords cc 8950 Webkit: insertElement() not working as expected for inline elements Teresa Monahan Garry Yao "The formatting of elements changes when inserting multiple elements into the editor in Webkit browsers. To reproduce: - Save the attached file into the _samples directory and open it in Chrome or Safari. - Click the 'Insert Elements' button. This should add a paragraph of text to the editor and an image below it. '''Problem:''' The image is inserted after the text, rather than below it in webkit browsers. The generated HTML in webkit browsers is: {{{

Text goes here

}}} Other browsers correctly add a new paragraph for the image: {{{

Text goes here

}}} This only seems to occur when an inline element is inserted after a block level element. We can reproduce this when the first element is a

or

and the 2nd element is a ,