Files
klz-cables.com/test-html.js
Marc Mintel e1b441e8e7
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Successful in 1m30s
Build & Deploy / 🏗️ Build (push) Successful in 2m42s
Build & Deploy / 🚀 Deploy (push) Successful in 39s
Build & Deploy / 🧪 Smoke Test (push) Successful in 51s
Build & Deploy / 🛡️ Quality Gates (push) Failing after 1m24s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / ♿ WCAG (push) Has been cancelled
fix(html): resolve validation errors, implement dynamic MDX heading shifting, and improve accessibility
2026-02-22 17:01:18 +01:00

17 lines
473 B
JavaScript

const fs = require('fs');
const html = fs.readFileSync('.htmlvalidate-tmp/page-8.html', 'utf8');
console.log('--- MAIN TAGS ---');
const mainTags = html.match(/<main[^>]*>/g);
console.log(mainTags);
console.log('--- DUP CLASS EXAMPLES ---');
const classAttr = html.match(/class="[^"]*text-slate-500[^"]*"/g);
if (classAttr) {
console.log(classAttr[0]);
}
const dupText10 = html.match(/class="[^"]*text-\[10px\][^"]*"/g);
if (dupText10) {
console.log(dupText10[0]);
}