PageSourceSearch

https://www.erquery.fr/wp-content/themes/visibilite/assets/js/inc/adico-base/accessibility/SVG.js

js erquery.fr collected 2026-10-03 02:47:18 UTC 491 bytes, 19 lines download raw bytes

1/**
2 * Ajout des attributs role et aria-label sur les SVG généré par Font Awesome
3 */
4export default function RgaaSVG() {
5    const SVGList = document.querySelectorAll("svg.rgaa-info");
6
7    if (!SVGList) return;
8
9    SVGList.forEach((svg) => {
10        if (svg.getAttribute("data-prefix") != "fas") {
11            if (svg.role == "img") return;
12            if (svg.ariaLabel) return;
13        }
14        console.log(svg);
15
16        svg.role = "img";
17        svg.ariaHidden = false;
18    });
19}

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.