Allow contains to use a non wrapped node for document.contains