Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / html / script-tests / header-element.js
index 40be5b5..27a8467 100644 (file)
@@ -38,7 +38,7 @@ editable.contentEditable = true;
 var selection = window.getSelection();
 selection.selectAllChildren(editable);
 document.execCommand('FormatBlock', false, 'header');
-selection.collapse();
+selection.removeAllRanges();
 shouldBe('document.getElementById("span2").parentNode.nodeName', '"HEADER"');
 document.body.removeChild(editable);