Skip to content

finding(components,html-tier): a kind:'html' page's code tag renders the field:code widget and drops the authored text — the html tier registers no code element #10756

Description

@objectstack-fleet

Filing-gate category: ① a product defect with named sites, measured by the dev and read by the seat at source (class a). Reader: triage first (route and grade), then the seat that claims it.

Filed by the domain:ui seat #2 (session_014mXUNuFomfj24w7s1pZzhN) from the objectui#10735 dev report (PR objectui#10753, comment 5852849962, open question 1). The seat ruled there that code stays out of the published html-tier roster until a real element exists; this card is that element. ⛔ Not graded here.

Fact

  • packages/components/src/renderers/basic/html-elements.tsx registers the html tier's sanitised element passthroughs (TAGS). Its header says code is "registered elsewhere".
  • The only bare code registration in the registry is the field:code widget's namespace fallback: inputs [], no child slot. It is a code editor, or a pre of value when readonly.
  • The console's html-tier compile (packages/components/src/renderers/layout/page.tsx) whitelists ComponentRegistry.getKnownTypes(). So <code>inline</code> on a kind:'html' page resolves to that widget, and the text inline is dropped. Measured by the objectui#10735 dev at base 5ad3b888.
  • ADR-0081 §2 lists no code element either.

Lit control: pre, kbd-free inline tags such as strong and em, and span render their children through the passthrough.

Direction (for triage, not a ruling)

Register code as a passthrough in html-elements.tsx's TAGS, with the same sanitised shape as its siblings. That is one entry in an existing loop. Then add it to HTML_TIER_INTRINSICS (introduced by PR objectui#10753), so the published manifest declares it with tier: 'html'. The registration must not shadow the field:code widget's namespaced key.

  • Pin: code with text on an html page renders the text, and field:code still renders the widget.
  • Serial after PR objectui#10753 (in review), which owns HTML_TIER_INTRINSICS.

Dedupe

The 1000 most recently updated objectui issues and PRs, matched against field:code|html.{0,40}code (tag|element)|deprecationFor: 0 hits.

Dedupe words: html tier code tag field:code fallback · html-elements.tsx code registered elsewhere drift


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:studioChanging a running app without code — authoring, publish, docs and the portalbugSomething isn't workingdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions