Index: LayoutTests/fast/html/script-tests/main-element.js |
diff --git a/LayoutTests/fast/html/script-tests/main-element.js b/LayoutTests/fast/html/script-tests/main-element.js |
index 6e467cf5845210fb4dcd4208eb1d73f5335f9b1f..70b690b3f4b5b080d95347b484f73290ca66e4ba 100644 |
--- a/LayoutTests/fast/html/script-tests/main-element.js |
+++ b/LayoutTests/fast/html/script-tests/main-element.js |
@@ -35,7 +35,7 @@ editable.contentEditable = true; |
var selection = window.getSelection(); |
selection.selectAllChildren(editable); |
document.execCommand('FormatBlock', false, 'main'); |
-selection.collapse(); |
+selection.removeAllRanges(); |
shouldBe('document.getElementById("span2").parentNode.nodeName', '"MAIN"'); |
document.body.removeChild(editable); |