Skip to content

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

Open
johanrd wants to merge 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-table-groups
Open

Fix template-table-groups: align with upstream's table semantics#2701
johanrd wants to merge 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
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.

1 participant