@@ -126,6 +126,7 @@ function getElementsToCheck( view ) {
// - span: for single paragraph with no attributes.
// - span: for single paragraph with no attributes.
// - p : in other cases.
// - p : in other cases.
function ensureProperElementName( currentViewElement, mapper, writer ) {
function ensureProperElementName( currentViewElement, mapper, writer ) {
+ // This situation may happen if a view element was changed and removed at the same time. In this case the view element is already unbound so the post-fixer would crash.
if ( !currentViewElement.root.is( 'rootElement' ) ) {
if ( !currentViewElement.root.is( 'rootElement' ) ) {