Ale: HTML5 tags not recognized

Created on 26 Aug 2017  路  4Comments  路  Source: dense-analysis/ale

I'm seeing errors with my HTML5 tags not being recognized.

screen shot 2017-08-26 at 4 41 06 pm

Also, I use JS components from time to time and they have custom tag names. So my question is two-fold, is there a way to make it recognize valid HTML5 tags, and separately, is it possible to disable errors for invalid tag names all together?

Thanks!

Most helpful comment

The problem here is that /usr/bin/tidy - the tidy included in mac osx is quite old:

HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 15.18.1

There is a more recent version available in homebrew called tidy-html5 (it writes to /usr/local/bin/tidy so is a drop-in replacement):

brew install tidy-html5

This fixed the problem for me.

All 4 comments

There might be some way to configure the program to recognise different doctypes or to allow more HTML tags. Find out which program is returning these messages by checking :ALEInfo and consult the documentation for each tool.

I use a Pug linter at work which can be configured to allow custom tags or additional attributes. So that had to be configured to do that.

The problem here is that /usr/bin/tidy - the tidy included in mac osx is quite old:

HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 15.18.1

There is a more recent version available in homebrew called tidy-html5 (it writes to /usr/local/bin/tidy so is a drop-in replacement):

brew install tidy-html5

This fixed the problem for me.

Sounds like that comment holds the answer.

Yes. This works perfectly for me now. :)

Was this page helpful?
0 / 5 - 0 ratings