You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
“Start tag in table body” message for <thead><th></th></thead> is confusing #102
That is, it says the parser must switch into the "in table body" insertion mode even though it actually could be within a thead or tfoot element — not just within a tbody element.
oh thx. fixed the lint error now that i know what it is. will leave issue open if there's interest in fixing the message. otherwise feel free to close this.
changed the title [-]validation-bug - parser confuses <thead> for <tbody>[/-][+]“Start tag in table body” message for <thead><th></th></thead> is confusing[/+]on Dec 19, 2025
@sideshowbarker, team, could someone unassign me from this? Seems the assignment got carried over but I’m not the best person to handle this in this repo 🙂
@sideshowbarker, team, could someone unassign me from this? Seems the assignment got carried over but I’m not the best person to handle this in this repo 🙂
Activity
sideshowbarker commentedon Dec 23, 2020
Agreed that error message is confusing.
I’m inclined to think it should just be changed to “
thstart tag not withintrelement”.But to be clear one thing: the “in table body” in that error message does not mean “in the
tbodyelement”.If you go to https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-intable and then scroll to the part which says, “A start tag whose tag name is one of: "tbody", "tfoot", "thead"”, you’ll notice it then says, “switch the insertion mode to "in table body"”.
That is, it says the parser must switch into the "in table body" insertion mode even though it actually could be within a
theadortfootelement — not just within atbodyelement.And then if you go to https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-intbody and see the part that says, “A start tag whose tag name is one of: "th", "td"”, that’s the part of the spec that this error message corresponds to.
kaizhu256 commentedon Dec 23, 2020
oh thx. fixed the lint error now that i know what it is. will leave issue open if there's interest in fixing the message. otherwise feel free to close this.
[-]validation-bug - parser confuses <thead> for <tbody>[/-][+]“Start tag in table body” message for <thead><th></th></thead> is confusing[/+]j9t commentedon Jan 14, 2026
@sideshowbarker, team, could someone unassign me from this? Seems the assignment got carried over but I’m not the best person to handle this in this repo 🙂
sideshowbarker commentedon Jan 15, 2026
Yup, done