Skip to content

Preserve CSS-addressable RichText and non-button link nodes #734

Description

@chubes4

Problem

Canonical conversion can preserve visible declarations while destroying the source selector target. Fixture 37 demonstrates two generic cases: .roster-card .stamp source spans become marker-only <mark> nodes without the author class, and a.view / layout-bearing non-button anchors become paragraph wrappers whose inner anchor lacks the source class. Hover, pseudo, descendant, and future stylesheet rules become inert.

Work

  • Preserve safe source class/id/data identity on representable RichText inline nodes.
  • Preserve non-button anchor identity on the inner <a> while retaining wrapper presentation where Gutenberg requires it.
  • Use a semantic carrier only when structural display/alignment cannot be represented on the inner anchor.
  • Rewrite selectors only when source DOM identity cannot be preserved.

Acceptance

  • .roster-card .stamp and .roster-card a.view still select the intended saved node.
  • Hover/pseudo/descendant variants remain effective.
  • Inline-flex non-button anchors retain display, alignment, gap, href, and class.
  • Gutenberg parse/save validation and canonical site-plan tests pass.

Evidence: fixture 37 artists/current-exhibition diagnostics from run d17780c9-0100-4390-abe0-43eb11d465e7. AI-assisted diagnosis: GPT-5.6 Sol via OpenCode; Chris owns acceptance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions