2 ms·
broken XML leading to browsers applying inconsistent closing tags is a much bigger issue than missing attributes or inline CSS this kind of linting can't spot
by adzicg 10y ago
broken XML leading to browsers applying inconsistent closing tags is a much bigger issue than missing attributes or inline CSS
this kind of linting can't spot broken document structure
- Xorlev 10y agoSure, but lets say you have well-formed HTML tags. At that point you're looking for things semantically "weird" as opposed to structurally wrong. This helps there.
- stan_rogers 10y agoHTML isn't XML. HTML is older.
- recursive 10y agoThe rules for this are specified in the html5 spec. Also, some tags are not allowed to be closed, and others are only optionally closed. (like li and p)