DEV Community

Discussion on: Validating Markup: Write Your Own Snippet

robole profile image
Rob OLeary • Edited on

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:

  media="(prefers-color-scheme: light)"
  content="hsl(60, 100%, 97%)"
Enter fullscreen mode Exit fullscreen mode
madsstoumann profile image
Mads Stoumann Author

Thanks - I'll check out HTMLHint!