Skip to content

Use StreamResources with Element.setAttribute #389

Description

@Artur-
Element img = new Element("img");
img.setAttribute("src", createStreamResource());

img.getAttribute() should return the URI which also ends up in the client

Attaching the element registers the resource.
Detaching the element unregisters the resource.

Setting the attribute to another value unregisters the resource (no matter if setting a new string or a new resource).

Depends on #386

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions