HTMLElement.prototype.queryAncestor = function(sSelector) { if (this.webkitMatchesSelector(sSelector)) return this; if ((this.parentNode) && (this.parentNode.nodeType == 1)) { return this.parentNode.queryAncestor(sSelector); } return null; }; HTMLElement.prototype.queryMatches = function(sSelector) { return this.webkitMatchesSelector(sSelector); };
Czy ktoś może się orientuje co należy w nim zmienić aby był kompatybilny z innymi przeglądarkami niż tylko WEBKIT