Align Selection API with the specification
[WebKit-https.git] / LayoutTests / editing / selection / script-tests / DOMSelection-DocumentType.js
index 9188e17..76f9caf 100644 (file)
@@ -3,10 +3,10 @@ description("Test to check if setBaseAndExtent guard node with null owner docume
 var sel = window.getSelection();
 var docType = document.implementation.createDocumentType('c', '', '');
 
-sel.setBaseAndExtent(docType);
+sel.setBaseAndExtent(docType, 0, docType, 0);
 shouldBeNull("sel.anchorNode");
 
-sel.setBaseAndExtent(null, 0, docType, 0);
+sel.setBaseAndExtent(docType, 0, docType, 0);
 shouldBeNull("sel.anchorNode");
 
 sel.collapse(docType);