1var getParents=function(elem,selector){var parents=[];var firstChar;if(selector){firstChar=selector.charAt(0);} 2for(;elem&&elem!==document;elem=elem.parentNode){if(selector){if(firstChar==='.'){if(elem.classList.contains(selector.substr(1))){parents.push(elem);}} 3if(firstChar==='#'){if(elem.id===selector.substr(1)){parents.push(elem);}} 4if(firstChar==='['){if(elem.hasAttribute(selector.substr(1,selector.length-1))){parents.push(elem);}} 5if(elem.tagName.toLowerCase()===selector){parents.push(elem);}}else{parents.push(elem);}} 6if(parents.length===0){return null;}else{return parents;}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.