Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]thead should include <th> or <td> but not a mixture of both #930

Open
2 tasks done
yourpropertyexpert opened this issue Oct 8, 2024 · 0 comments
Open
2 tasks done

Comments

@yourpropertyexpert
Copy link

yourpropertyexpert commented Oct 8, 2024

Feature Request

This, I think, requests a new rule. Apologies if I'm posting in the wrong place.

I've just spent a while tracking down a formatting issue whose root cause was that a thead section included a single td in a bunch of th... and that the two had different css settings.

I realise that lots of sites use td instead of th, so I'm NOT suggesting that djlint check for td in thead.

But what would be useful would be if it could scan to make sure that a thead ... /thead section didn't contain a mix of the two!

This happened to be in a Mustache template, but I suspect applies wherever html tables are being linted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant