Skip to content

Preserve semantic template part boundaries - #696

Merged
chubes4 merged 2 commits into
trunkfrom
fix/632-semantic-template-part-boundaries
Jul 26, 2026
Merged

Preserve semantic template part boundaries#696
chubes4 merged 2 commits into
trunkfrom
fix/632-semantic-template-part-boundaries

Conversation

@chubes4

@chubes4 chubes4 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • retain separate shell representations for page identity/pruning, template-part content, and compatibility projections
  • let wp:template-part own the outer header/footer landmark via semantic tagName
  • prevent nested landmark groups inside template-part payloads
  • preserve source class, anchor, inline style, and content hooks on a non-landmark wrapper across canonical v2, compiled-site v1, and materialization-plan v1
  • keep page pruning based on bare inner markup so extracted chrome is not duplicated in post content

Advances #632.
Cross-references #688 for runtime-bound shell retention safety.

Compatibility

Existing page shell identity and runtime-binding checks continue to use the full landmark representation. Compiled-site and materialization v1 retain their schemas while carrying source presentation on a non-landmark group. Canonical template references add tagName, matching WordPress core template-part rendering semantics.

Verification

  • composer --working-dir=php-transformer test
  • canonical contracts and all unit suites
  • 248 parity fixtures
  • package-install proof
  • php php-transformer/tests/contract/shared-shell-plan.php
  • php php-transformer/tests/contract/wordpress-site-plan.php
  • php php-transformer/tests/contract/run.php
  • PHP lint and git diff --check

AI assistance

  • Model: OpenAI GPT-5.6 Sol
  • Tool: OpenCode
  • Used for: integration-history isolation, conflict resolution against current trunk, compatibility review, contract strengthening, and test execution with Chris Huber.

@chubes4
chubes4 merged commit 947d05e into trunk Jul 26, 2026
4 checks passed
@chubes4
chubes4 deleted the fix/632-semantic-template-part-boundaries branch July 26, 2026 18:46
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