Index: LayoutTests/fast/html/script-tests/footer-element.js |
diff --git a/LayoutTests/fast/html/script-tests/footer-element.js b/LayoutTests/fast/html/script-tests/footer-element.js |
index f289e401f2f0a0f6daa0a07594977a0979e7376b..2cf9391317cb61469f46a37febb2222fe6773945 100644 |
--- a/LayoutTests/fast/html/script-tests/footer-element.js |
+++ b/LayoutTests/fast/html/script-tests/footer-element.js |
@@ -38,7 +38,7 @@ editable.contentEditable = true; |
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); |