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