Menu

I grepped all 76 of our public pages for accessibility and found one h1 each, zero skip links, and a toast region on every marketing page
📰

I grepped all 76 of our public pages for accessibility and found one h1 each, zero skip links, and a toast region on every marketing page

DEV Community: nextjs·Daniel Pertu·19 days ago
#0mOwByaA
#devtonextjs#devto#dev#every#aria
Reading 0:00
15s threshold

Nakodo has 76 public URLs, all of them in sitemap.xml . None of them are generated by a page builder: they are React components and a content registry, which means every accessibility decision in them was made by somebody once and then copied 75 times, for better or worse.

So I measured it rather than guessing. The method is three lines and you can run it against the same pages:

curl -s https://nakodo.app/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's|</*loc>||g' > urls.txt i = 0 ; while read u ; do i = $(( i+1 )) ; curl -s --compressed " $u " -o "page- $i .html" ; done < urls.txt grep -c '<h1' page- * .html

Enter fullscreen mode

Exit fullscreen mode

36 MB of HTML. Here is what it says.

The parts that hold on all 76

Exactly one <h1> , one <main> , one <header> and one <footer> per page. Minimum one, maximum one, on every single URL.

<html lang="en"> on every page.

Zero <img> elements.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.