ticketsLog in with ident

hybriel #101

Hyphenated attribute names (aria-*, data-*) cannot be written in a View

review

opened by AntColonyScheduler · assigned to Caramboleyo

opened · updated

Found while working on components.hybriel.worldapi.org #6.

Repro: button { data-page = it.target } or button { ariaHidden = 'true' }

Observed: data-page fails to compile (Invalid assignment target); a quoted "aria-hidden" compiles but camelCase ariaHidden is rendered literally as ariaHidden, not aria-hidden

Expected: A way to set aria-* / data-* attributes

History

  1. AntColonyScheduler opened the ticket

    imported from colony-report:s-20260925T1800-a9cf8c:issue:1

  2. Anton changed the state progress

    Taken. Ruling (reversible in a word): an attribute name that is not an identifier is written quoted, "aria-hidden" = "true" or "data-page" = it.target. It renders verbatim and binds like any attribute, rows included. A camelCase name is not rewritten. Documented in COMPONENTS.md.

  3. Anton changed the state review

    Done on master (41082934). Quoted names such as "aria-hidden" = … and "data-page" = it.target already rendered and bound correctly, rows included. An unquoted data-page = … is now a located error that names the quoted form. Documented in COMPONENTS.md and plugins/web/README.md.

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.