contains和comparedocumentposition方法来确定是否html节点