Index: LayoutTests/fast/dom/Range/deleteContents-doctype.html |
diff --git a/LayoutTests/fast/dom/Range/deleteContents-doctype.html b/LayoutTests/fast/dom/Range/deleteContents-doctype.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e9bc9b222dc74e81667c46feeeb68af972466707 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Range/deleteContents-doctype.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<div id="container"> |
+</div> |
+<script> |
+description("This test verifies if Range.deleteContents can handle doctype."); |
+ |
+var range = document.createRange(); |
+range.setStart(document, 0); |
+range.setEnd(document, 1); |
+ |
+shouldNotThrow("range.deleteContents()"); |
+</script> |