DEV Community

Discussion on: Why is HTML linting not a common practice?

Collapse
 
bgadrian profile image
Adrian B.G.

I may express myself wrong, the HTML specs are "forgiven" not only the browsers, so all parser should be, including screen readers and SEO bots. Example some tags ends can be omitted, and some even start tags.

I didn't knew we talked about progressive enhancement only, I was just replying to the tile, HTML linters maybe will be used after we start using JS and CSS linters, which has more complexity and can cause bigger problems.

Either way most of the HTML nowdays are inside N template systems, concatenated strings, or generated by "shadow DOMs", so HTML pretty much doesn't exists in the source code per se, so linting it would be harder, and done on the end product.

Thread Thread
 
dandevri profile image
Danny de Vries

Ah, I get your point! I coined up progressive enhancement since, in my opinion, we focus more on CSS and JS because people tend to find them harder languages. They are most of the time regarded as more complex which I don't agree with.

HTML pretty much doesn't exists in the source code per se, so linting it would be harder

It will impose a challenge but we figured it out with preprocessors and other compiled languages so I guess we also can when we're using templating languages.