Skip to content

Preserve digit-only text literals in markup attributes - #427

Merged
ctate merged 1 commit into
mainfrom
ctate/preserve-digit-only-98c2b8bb
Sep 6, 2026
Merged

Preserve digit-only text literals in markup attributes#427
ctate merged 1 commit into
mainfrom
ctate/preserve-digit-only-98c2b8bb

Conversation

@ctate

@ctate ctate commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Markup inferred every bare literal numerically before applying attribute types, so values like placeholder="123" or label="456" could reject the view and leave a blank window.

This change adds schema-aware literal classification shared by the interpreter, compiled engine, and contract checker. Text attributes remain strings while numeric, flag, option, and key attributes retain their existing behavior, with parity coverage for all three paths.

Factory-Run: 98c2b8bb-54a0-4334-856e-1bc6c1ba37f3
Co-authored-by: Don Park <127594+donpark@users.noreply.github.com>
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
native-sdk Ready Ready Preview, v0 Sep 6, 2026 9:02pm UTC
native-sdk-schema Ready Ready Preview, v0 Sep 6, 2026 9:02pm UTC

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.

1 participant