Every line of 'queryselector id' 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.
319 function getElementByID(id: string): any { 320 let debugElement = fixture.debugElement.query(By.css(`#${id}`)); 321 if (debugElement === null) { 322 return null; 323 } 324 return debugElement.nativeElement; 325 }
113 public async getElementById(id: string): Promise < any > { 114 let el: any; 115 await asyncForEach(this.availableServices, async (s: any) => { 116 await asyncForEach(this.serviceMap[s.name].resources, async (r: Resource) => { 117 const element: any = r.getElement(id); 118 if (element && element.data) { 119 const data = (element.data as BehaviorSubject).getValue().data; 120 el = data; 121 } 122 }); 123 }); 124 return this.clone(el); 125 }
49 export function id(id: string): By { 50 return By.id(id); 51 }
6 function $id(id) { 7 return document.getElementById(id); 8 }
9 function $id(id) { 10 return document.getElementById(id); 11 }
29 function $id(id) { 30 return doc.getElementById(id); 31 }
29 function id(idStr) { 30 return document.getElementById(idStr); 31 }
18 function querySelector(elementLocator, documentLocator) 19 { 20 var docElement; 21 if (documentLocator) docElement = document.querySelector(documentLocator); 22 else docElement = document; 23 24 return docElement.querySelector(elementLocator); 25 }
104 function getElementById(id) { 105 if (id == "abp-sidebar") 106 return null; 107 108 _lastRequested = id; 109 return this; 110 }
210 function elemId(id) { 211 return document.getElementById(id); 212 }