twbs / bootlint

HTML linter for Bootstrap projects
MIT License
2.4k stars 312 forks source link

Are col-*-* classes supposed to be allowed on <table> related elements? #376

Closed ChrisMBarr closed 8 years ago

ChrisMBarr commented 8 years ago

I see that rule E014 specifically allows for col-*-* classes to appear on <col>, <td> and <th> elements. I see no mention of this being allowed in the bootstrap docs or in the bootlint wiki. I also see no tests in bootlint that check for this.

Is this intended? I only noticed this because I saw a usage of this in a project that I have bootlint running on, and I was surprised that it wasn't flagged.

cvrebert commented 8 years ago

Yes, it's intended. https://github.com/twbs/bootstrap/issues/11623 implies that it's supported. You're right that 747dc1c5e356e91ea3900bc73af68f2a271edf86 neglected to include a test and that the docs ought to mention this case.