Dynamically creating a style element triggers a XHR request to ""

Issue #14214977 • Assigned to James M.


Jerome L.
Oct 13, 2017
This issue is public.
Found in
  • Microsoft Edge
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Adding a style element dynamically triggers a XHR request to "". Therefore, if my base tag defines the base as /foo, a XHR request to /foo will be triggered, which might end up responding a 404 error.

Look at the Network tab in the dev tools to see the request.

Here’s a simple HTML snippet to reproduce the issue.

        <base href="/foo"></base>
            function createStyleElement() {
        When dynamically creating a style element, a request to the base URL (here /foo) is made (see the Network tab in the dev tools).<br>
        <button onclick="createStyleElement()">Create style element</button>


1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Status to “Fixed”

  • Hello,

    Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 16299 and is available in our latest Insider Preview build in the Fast ring.

    Best Wishes,
    The MS Edge Team

  • Changed Status from “Fixed”

  • Sorry to say that issue is still present on Edge 16299.

    Not reproductible when opening the snippet file from "file:///C:/xxx/yyy/edge_style_bug.html".

    But reproductible when serving the snippet and opening it from “http://localhost:3000/edge_style_bug.html

    Microsoft Edge 41.16299.248.0
    Microsoft EdgeHTML 16.16299

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

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

Sign in