Skip to content

Balance table parts outside their context - #487

Merged
jmanico merged 1 commit into
mainfrom
fix/483-table-parts-outside-context
Sep 12, 2026
Merged

Balance table parts outside their context#487
jmanico merged 1 commit into
mainfrom
fix/483-table-parts-outside-context

Conversation

@jmanico

@jmanico jmanico commented Sep 12, 2026

Copy link
Copy Markdown
Member

Table parts that arrive inside cell content currently imply a second table instead of clearing back to the table already in scope. Related transitions leave a column group open before a row, open an orphan implied table inside a paragraph, and let </template> stop at table structure inside the template.

Return table parts to the nearest emitted table in table scope before implying wrappers, prepare orphan implied tables through normal containment, and give template ends a scope that crosses table structure while retaining raw-text feature barriers. Formatting state cleared by a template does not resume outside it. Dropped or renamed logical tables keep the prior behavior because they do not establish an output table context.

Regression coverage includes nested tables, two depths of pushed-out content, rows after columns, paragraphs around orphan parts, templates and raw-text feature barriers, SVG/MathML and integration points, dropped/renamed policies, HtmlChangeReporter, browser-tree equality, sanitizer idempotence, event balance, and nesting limits 0–5.

Validation:

Closes #483

@jmanico
jmanico merged commit a72b593 into main Sep 12, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

A table part arriving outside a table context implies a new table where a browser returns to the open one or drops the part

1 participant