--- a/selecttest/collapse.html Wed Jan 11 13:38:32 2012 -0700
+++ b/selecttest/collapse.html Thu Jan 12 11:32:57 2012 +0100
@@ -14,11 +14,10 @@
selection.addRange(addedRange);
}
- if (point[0].nodeType == Node.DOCUMENT_TYPE_NODE
- || point[0].nodeType == Node.PROCESSING_INSTRUCTION_NODE) {
+ if (point[0].nodeType == Node.DOCUMENT_TYPE_NODE) {
assert_throws("INVALID_NODE_TYPE_ERR", function() {
selection.collapse(point[0], point[1]);
- }, "Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType or ProcessingInstruction");
+ }, "Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType");
return;
}
--- a/selecttest/extend.html Wed Jan 11 13:38:32 2012 -0700
+++ b/selecttest/extend.html Thu Jan 12 11:32:57 2012 +0100
@@ -108,11 +108,10 @@
return;
}
- if (node.nodeType == Node.DOCUMENT_TYPE_NODE
- || node.nodeType == Node.PROCESSING_INSTRUCTION_NODE) {
+ if (node.nodeType == Node.DOCUMENT_TYPE_NODE) {
assert_throws("INVALID_NODE_TYPE_ERR", function() {
selection.extend(node, offset);
- }, "extend() to a doctype or PI must throw INVALID_NODE_TYPE_ERR");
+ }, "extend() to a doctype must throw INVALID_NODE_TYPE_ERR");
return;
}