DEV Community

Discussion on: Validating Markup: Write Your Own Snippet

Collapse
 
robole profile image
Rob OLeary • Edited

Nice job. I crossed paths with this recently as well.

I use HTMLHint as a VS Code extension to report HTML errors. I was wondering if linting HTML partials missed anything, so I ran a few pages through the W3C validator to see, and only return 1 error, which turned out to be a mistake. They hadn't updated their rules, it was reporting a newish media attribute for theme color as an error by mistake:

<meta
  name="theme-color"
  media="(prefers-color-scheme: light)"
  content="hsl(60, 100%, 97%)"
/>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks - I'll check out HTMLHint!