1export const setAriaExpanded = (element, isExpanded) => { 2 if (!element) { 3 return; 4 } 5 6 element.setAttribute('aria-expanded', String(isExpanded)); 7}; 8 9export const setElementHidden = (element, isHidden) => { 10 if (!element) { 11 return; 12 } 13 14 element.setAttribute('aria-hidden', String(isHidden)); 15 16 if (isHidden) { 17 element.setAttribute('inert', ''); 18 return; 19 } 20 21 element.removeAttribute('inert'); 22};
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.