Skip to content

citry_html_transform: follow browsers when nesting static Markup, and tighten mark_html inputs #775

Open

Description

@JuroOravec

Two tightening items in crates/citry_html_transform:

  1. static_html_in_context and static_html_node_count decide how a static Markup block nests by running html5ever's own rules, so they agree with html5ever even where browsers build a different tree. Example: a hydrating Markup block <li><search><li>x</li></search></li> makes Vue report a hydration mismatch in Firefox and WebKit. This affects hydration only.
  2. Several mark_html inputs (src/marker.rs) that only a template author can write could be refused or normalized more strictly. Re-derive the list from the code before changing anything.

Needs a decision on scope, then a citry-core release.

🤖 Generated with Claude Code

Activity

  1. added this to the 1.1.0 milestone on Nov 18, 2026
  2. added
    next-sprint
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions