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

"A start tag whose tag name is one of: "caption"..." #7242

Closed
JKingweb opened this issue Oct 20, 2021 · 0 comments · Fixed by #9810
Closed

"A start tag whose tag name is one of: "caption"..." #7242

JKingweb opened this issue Oct 20, 2021 · 0 comments · Fixed by #9810

Comments

@JKingweb
Copy link

https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-intd

A start tag whose tag name is one of:​ "caption", "col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"
If the stack of open elements does not have a td or th element in table scope, then this is a parse error; ignore the token. (fragment case)

As far as I can tell this case is unreachable. The only way to reach the "in cell" insertion mode is by having a <td> or <th> element in the stack; the rules for resetting the insertion mode appropriately only yield the "in cell" insertion mode if last is false (i.e. not if node is the fragment context).

Is my assessment correct? Is the text superfluous, or is the insertion mode resetting algorithm wrong?

not-my-profile added a commit to not-my-profile/html that referenced this issue Sep 29, 2023
Fixes whatwg#7242.

Co-authored-by: J. King <jking@jkingweb.ca>
not-my-profile added a commit to not-my-profile/html that referenced this issue Sep 29, 2023
Fixes whatwg#7242.

Co-authored-by: J. King <jking@jkingweb.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants