var selection = window.getSelection();
selection.selectAllChildren(editable);
document.execCommand('FormatBlock', false, 'footer');
-selection.collapse();
+selection.removeAllRanges();
shouldBe('document.getElementById("span2").parentNode.nodeName', '"FOOTER"');
document.body.removeChild(editable);