Skip to content

How to resolve relative paths #34

@mildred

Description

@mildred

In streamed DOM, there could be relative URLs, how to resolve them?

It seems there should be a way to ensure that the relative paths refer to the resources relative to the DOM streamed view location instead of being relative to the page that embeds it.

Use case : I want to stream/include a component that reference an image. The component references the image as a relative path to the component HTML markup.

Back in the days of XML, there was a xml:base attribute that could alter the base path used to compute relative URLs on the XML subtree. In HTML, there is only a tag in the HEAD for that unfortunately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions