Every line of 'jquery attribute contains' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
58 function hasAttribute(el, attribute) { 59 return el.getAttribute(attribute) != null; 60 }
73 return function andContains(elem) { 74 var i = -1; 75 while(++i < L) if(!compiledOps[i](elem)) return false; 76 return true; 77 };
589 function hasJQueryData(object) { 590 var data = evalJQueryData(object); 591 for (var x in data) { 592 if (data.hasOwnProperty(x)) { 593 return data; 594 } 595 } 596 };
77 async getAttr(selector, attr) { 78 return this.page.$eval( 79 selector, 80 (node, attrInBrowser) => node.getAttribute(attrInBrowser), 81 attr, 82 ); 83 }
96 function attr(element, name) { 97 return element.getAttribute(name); 98 }
625 getAttribute(element, attribute) { 626 return element.getAttribute(attribute); 627 }
278 function contains(haystack, needle) { 279 return haystack.toLowerCase().indexOf(needle.toLowerCase()) != -1; 280 }