(function(){functioncontains(node){if(!(0inarguments)){thrownewTypeError('1 argument is required');}do{if(this===node){returntrue;}}while(node=node&&node.parentNode);returnfalse;}// IEif('HTMLElement'inthis&&'contains'inHTMLElement.prototype){try{deleteHTMLElement.prototype.contains;}catch(e){}}if('Node'inthis){Node.prototype.contains=contains;}else{document.contains=Element.prototype.contains=contains;}}());