Skip to content

Post-merge-review: Fix template-table-groups: align with upstream's table semantics#2701

Merged
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-table-groups
Apr 14, 2026
Merged

Post-merge-review: Fix template-table-groups: align with upstream's table semantics#2701
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-table-groups

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

Summary

  • Fixes false positives on legitimate conditional table layouts: scope-union reduce now merges all ancestor scopes when entering a control-flow branch (was copying only the current scope)
  • Removes port-only empty-table synthetic check: upstream does not flag <table></table>

Test plan

  • <table></table> → valid (matches upstream)
  • <table>{{#if ...}}<tbody>...</tbody>{{/if}}</table> → valid (no false positive)
  • <table>text<thead>...</thead></table> → still flagged (whitespace before group)

Match upstream's scope-union reduce for sibling control-flow branches
(was producing false positives on legitimate table layouts). Remove
the port-only empty-table synthetic check, which over-flagged
<table></table> beyond upstream's scope.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 17:04
@johanrd johanrd force-pushed the day_fix/template-table-groups branch from d3f3889 to 92a5cf4 Compare April 13, 2026 17:39
@johanrd johanrd changed the title Fix template-table-groups: align with upstream's table semantics Post-merge-review: Fix template-table-groups: align with upstream's table semantics Apr 13, 2026
@NullVoxPopuli NullVoxPopuli merged commit 8f4bcc0 into ember-cli:master Apr 14, 2026
20 checks passed
@johanrd johanrd deleted the day_fix/template-table-groups branch April 14, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants