<base> tag has no effect on svg <use> href referencing external svg document if inside<iframe>

Issue #13535242 • Assigned to bbrinza

Details

Author
Ahmed E.
Created
Aug 31, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Given the attached zip file as example:

Step 1:

In svg-test-file.html

<!doctype html>
<html>
<head>
    <base href="/static/">
</head>
<body>
        <svg width="400px" height="400px">
                <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="assets/icons.svg#Italy"></use>
        </svg>
</body>
</html>

Step 2:

In svg-test-iframe.html:

<!doctype html>
<html>
<body>
        <iframe style="width:1000px; height:1000px" src="svg-test-file.html"></iframe>
</body>
</html>

Step 3:
Make sure icons.svg file inside /static/assets/ directory

Step 4: Use a web server to serve all files. Assuming to: http://127.0.0.1:8080

Step 5: Navigate to: http://127.0.0.1:8080/svg-test-iframe.html

Actual:
svg image is not rendered.
error console shows:

svg-test-iframe.html
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://127.0.0.1:8080/assets/icons.svg

Expected:
browser should download http://127.0.0.1:8080/static/assets/icons.svg and show the svg image correctly.

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “bbrinza”

You need to sign in to your Microsoft account to add a comment.

Sign in