var div = document.createElement('div');
var range = document.createRange();
throws a INVALID_NODE_TYPE_ERROR but it shouldn't.
The problem is that checkNodeBA throws this exception when the root node of refNode is not a document, a document fragment, or an Attr node.
This bug was found by the newly added LayoutTests/http/tests/w3c/dom/ranges/Range-selectNode.html
*** This bug has been marked as a duplicate of bug 149490 ***