Don't assume text nodes have a contains method
Don't assume text nodes have a contains method

Since they don't on IE11

Issue prosemirror/prosemirror#544

jspn500/prosemirror-view,ProseMirror/prosemirror-view