fix: resolve HTML hierarchy, accessibility and PDF link issues
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 7s
🚀 Build & Deploy / 🧪 QA (push) Successful in 1m19s
🚀 Build & Deploy / 🏗️ Build (push) Successful in 11m30s
🚀 Build & Deploy / 🚀 Deploy (push) Successful in 12s
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 2m45s
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s
Nightly QA (Inlined) / 🏗️ Prepare & Install (push) Successful in 6m54s
Nightly QA (Inlined) / 🔍 Static Analysis (push) Failing after 1m29s
Nightly QA (Inlined) / 🧪 Maintenance & Links (push) Failing after 1m38s
Nightly QA (Inlined) / ♿ Accessibility (push) Successful in 2m0s
Nightly QA (Inlined) / 🎭 Lighthouse (push) Failing after 2m2s
Nightly QA (Inlined) / 🔔 Notify (push) Successful in 1s
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 7s
🚀 Build & Deploy / 🧪 QA (push) Successful in 1m19s
🚀 Build & Deploy / 🏗️ Build (push) Successful in 11m30s
🚀 Build & Deploy / 🚀 Deploy (push) Successful in 12s
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 2m45s
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s
Nightly QA (Inlined) / 🏗️ Prepare & Install (push) Successful in 6m54s
Nightly QA (Inlined) / 🔍 Static Analysis (push) Failing after 1m29s
Nightly QA (Inlined) / 🧪 Maintenance & Links (push) Failing after 1m38s
Nightly QA (Inlined) / ♿ Accessibility (push) Successful in 2m0s
Nightly QA (Inlined) / 🎭 Lighthouse (push) Failing after 2m2s
Nightly QA (Inlined) / 🔔 Notify (push) Successful in 1s
- Fix heading level skip in ContactContent success state (H3 -> H2) - Clean up deprecated iframe attributes in ContactContent - Add aria-label to footer logo link for WCAG compliance - Rename PDF assets to hyphenated filenames to fix link checks - Update AGB page with new PDF link format
This commit is contained in:
14
scripts/find-empty-anchors.ts
Normal file
14
scripts/find-empty-anchors.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as cheerio from "cheerio";
|
||||
import * as fs from "fs";
|
||||
|
||||
const file = process.argv[2];
|
||||
const html = fs.readFileSync(file, "utf8");
|
||||
const $ = cheerio.load(html);
|
||||
|
||||
$("a").each((i, el) => {
|
||||
const text = $(el).text().trim();
|
||||
const label = $(el).attr("aria-label");
|
||||
if (!text && !label) {
|
||||
console.log(`Empty anchor found: ${$(el).toString()}`);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user