Skip to content

stream-dom-dioxus: spell an asset handle as asset:<hex> in attribute values - #19

Merged
lannbot merged 1 commit into
mainfrom
dioxus/asset-attribute
Sep 7, 2026
Merged

stream-dom-dioxus: spell an asset handle as asset:<hex> in attribute values#19
lannbot merged 1 commit into
mainfrom
dioxus/asset-attribute

Conversation

@lannbot

@lannbot lannbot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Dioxus attribute values are strings, so stream-dom-dioxus reduced every value to the protocol's text arm and a Dioxus producer could not name an asset — a host whose policy requires asset-valued href/src (polyvisor) could not be handed a stylesheet by a Dioxus app.

A value of the form asset:<hex> (non-empty, even-length hex) now decodes to the asset arm, on both the static-template and dynamic set_attribute paths. Anything else is text, exactly as before. Receiver and host untouched; they already handle the arm.

Tests in writer_stream.rs cover both paths and the near-miss strings; docs/design.md records the convention.

Automerge armed.

…values

Dioxus attribute values are strings, so the writer had no way to emit the
protocol's asset arm; every href/src reached the receiver as text, which a
policy requiring asset-valued URLs rejects. An attribute value of the form
asset:<hex> now decodes to the asset arm on both the static-template and
dynamic set-attribute paths. Anything else is text, as before.
@lannbot
lannbot enabled auto-merge September 7, 2026 22:56
@lannbot
lannbot merged commit 3ec4c23 into main Sep 7, 2026
1 check passed
@lannbot
lannbot deleted the dioxus/asset-attribute branch September 7, 2026 23:02
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.

2 participants