code: function addBrToBlockIfNeeded(block) {
            var lastChild;
  
            // IE will render the blocks correctly other browsers needs a BR
            if (!isIE) {
              block.normalize(); // Remove empty text nodes that got left behind by the extract
  
              // Check if the block is empty or contains a floated last child
              lastChild = block.lastChild;
              if (!lastChild || (/^(left|right)$/gi.test(dom.getStyle(lastChild, 'float', true)))) {
                dom.add(block, 'br');
              }
            }
          }
docs: Adds a BR at the end of blocks that only contains an IMG or INPUT since these might be floated and then they won't expand the block