WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(web): suppress document.write deprecation with explanatory comment (ATB-34)

Malpercio 9f70b1e4 2042f57a

+5
+5
apps/web/src/__tests__/a11y.test.ts
··· 72 72 // the correct markup. 73 73 async function checkA11y(html: string): Promise<void> { 74 74 document.open(); 75 + // document.write is deprecated in browsers but is the only reliable way to 76 + // fully replace jsdom's global document (including <html lang="en">) for 77 + // axe-core. Alternatives like innerHTML assignment silently drop <html lang>, 78 + // which causes axe to report a spurious html-has-lang violation. 79 + // eslint-disable-next-line @typescript-eslint/no-deprecated 75 80 document.write(html); 76 81 document.close(); 77 82 const results = await axe.run({