You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently src attributes are interpreted as being relative to the page that the MML content has been loaded into. (e.g. an m-image with src="/foo.png" loaded on page localhost:8080 would result in requesting http://localhost:8080/foo.png)
If the m-image was an element of a remote document (e.g. an m-frame loaded from ws://example.com/) then src="/foo.png" should instead resolve to http://example.com/foo.png.
Why is it important?
This allows documents to refer to relative assets without having to determine their own address, which can be complex.
The behaviour of using the location of the document hosting the element requesting content is the same as iframe in HTML where the elements within the iframe with relative paths are loaded relative to the iframe's location.
How would you implement it?
Each remote document context has an address. This address can be used to determine the absolute path from potentially relative paths of content.
Packages
mml-web
Extra details
No response
The text was updated successfully, but these errors were encountered:
What is your suggestion?
Currently
src
attributes are interpreted as being relative to the page that the MML content has been loaded into. (e.g. anm-image
withsrc="/foo.png"
loaded on pagelocalhost:8080
would result in requestinghttp://localhost:8080/foo.png
)If the
m-image
was an element of a remote document (e.g. anm-frame
loaded fromws://example.com/
) thensrc="/foo.png"
should instead resolve tohttp://example.com/foo.png
.Why is it important?
This allows documents to refer to relative assets without having to determine their own address, which can be complex.
The behaviour of using the location of the document hosting the element requesting content is the same as
iframe
in HTML where the elements within theiframe
with relative paths are loaded relative to theiframe
's location.How would you implement it?
Each remote document context has an address. This address can be used to determine the absolute path from potentially relative paths of content.
Packages
mml-web
Extra details
No response
The text was updated successfully, but these errors were encountered: