Index: LayoutTests/fast/html/script-tests/hgroup-element.js |
diff --git a/LayoutTests/fast/html/script-tests/hgroup-element.js b/LayoutTests/fast/html/script-tests/hgroup-element.js |
index 5b232dffdc3a39190bf962d42228e605dce5ae52..afd226e350c49e194f4c825fb2b7755f9acd29f0 100644 |
--- a/LayoutTests/fast/html/script-tests/hgroup-element.js |
+++ b/LayoutTests/fast/html/script-tests/hgroup-element.js |
@@ -36,7 +36,7 @@ editable.contentEditable = true; |
var selection = window.getSelection(); |
selection.selectAllChildren(editable); |
document.execCommand('FormatBlock', false, 'hgroup'); |
-selection.collapse(); |
+selection.removeAllRanges(); |
shouldBe('document.getElementById("span2").parentNode.nodeName', '"HGROUP"'); |
document.body.removeChild(editable); |