Skip to content

Fix presentational data hooks forcing HTML fallbacks#488

Merged
chubes4 merged 1 commit into
trunkfrom
fix-487-restaurant-fallbacks
Jul 4, 2026
Merged

Fix presentational data hooks forcing HTML fallbacks#488
chubes4 merged 1 commit into
trunkfrom
fix-487-restaurant-fallbacks

Conversation

@chubes4

@chubes4 chubes4 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep presentation-only animation data selectors such as [data-reveal] and [data-delay] out of runtime DOM target preservation.
  • Adds a php-transformer parity fixture for static marketing sections that should remain editable native blocks.
  • Reduces 14-restaurant HTML fallback pressure without changing inline SVG preservation semantics.

Evidence

  • composer parity: passed, 203 fixtures.
  • composer test: passed, including contracts, units, parity, and install proof.
  • Direct SSI 14-restaurant matrix after fix: 96.28% native, 3.72% core/html, 0 invalid editor blocks. Baseline from issue evidence: 71% native, 29% core/html.
  • Direct SSI c1 matrix after fix: 7/7 fixtures succeeded, 97.40% native, 2.60% core/html, 0 invalid editor blocks.
  • 2-onepager-coffee after fix: 90.82% native, 9.18% core/html, 0 invalid editor blocks.

Fallback Taxonomy

  • div, p, h2, span, and section fallbacks in 14-restaurant were static editorial content carrying reveal/delay data attributes; these now convert to core group/heading/paragraph output.
  • Remaining 14-restaurant reported core/html findings are inline SVG artwork (hero-flame-svg, chef-flame-art, and a small icon SVG). Those remain raw HTML intentionally because arbitrary inline SVG has no safe core/native equivalent that preserves the vector artwork.
  • Script fallback remains accepted runtime preservation.

Fixes #487.

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 via OpenCode
  • Used for: Investigated fallback evidence, implemented the transformer/test change, ran verification, and drafted this PR description.

Treat presentational animation data selectors as non-runtime DOM targets so static marketing content remains editable native blocks.

Refs #487.
@chubes4 chubes4 merged commit 0cdfdcd into trunk Jul 4, 2026
1 check passed
@chubes4 chubes4 deleted the fix-487-restaurant-fallbacks branch July 4, 2026 02:37
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.

14-restaurant: 29% core/html fallback ratio — section-level patterns falling back (c1 lane worst native rate)

1 participant