Edge does not support HTML5 <iframe> srcdoc Attribute

Fixed Issue #12375527

Details

Author
Anthony B.
Created
Jun 17, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.16215
Reports
Reported by 10 people

Sign in to watch or report this issue.

Steps to reproduce

Edge browser (tested build 16215) does not support the HTML <iframe> srcdoc attribute.

https://www.w3schools.com/TAgs/att_iframe_srcdoc.asp

Discovered through using the new v3.0 Calibre ebook manager (https://calibre-ebook.com) content server with Edge. This generated an error:

“You are using a browser that does not have the iframe srcdoc attribute. This is not supported. Use a better browser such as Google Chrome or Mozilla Firefox, instead. You can also use the simplified /mobile interface if you do not have access to a modern browser.”

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

    • Works in build:
      Microsoft Edge 41.16299.15.0
      Microsoft EdgeHTML 16.16299

    • Microsoft Edge Team

      Changed Assigned To from “Travis L.” to “Nishant S.”

      Changed Status from “Confirmed” to “Fixed”

    • We’ve just added srcdoc on iframe. This will be included in a future version of Microsoft Edge

    • Does this apply to Javascirpt as well as HTML? I.e. will document.createElement(‘iframe’).srcdoc return a value or will it be undefined?

    • @David S.: Please reopen. It seems that document.createElement('iframe').srcdoc is undefined which is causing this issue with Calibre.

      Microsoft Edge 42.17133.1.0
      Microsoft EdgeHTML 17.17133

    • Hi Chris! The build you are using is EdgeHTML 17, which is the current release of Edge. srcdoc is included in EdgeHTML 18. This version works as expected for the code you shared.

      If possible, could you share a public URL to the site in question, along with reproduction steps, so that we can verify our implementation of srcdoc works as expected on the site?

    • Anthony: srcdoc attribute reflects. Both the IDL (JS) and content (HTML) attributes are supported. In your case it returns empty string “” as srcdoc hasn’t been set with a value yet.

    • A Microsoft support person, Graye, sent me the html shows that my Iframe Subscriber form can be displayed in the current version of Edge HTML 17. He also sent me a screen shot of my form being displayed in Edge. There’s no srcdoc included. This is what Graye sent me:

      Hello
    • Sorry, my html code did not get included in my response. I’ll try again:

      Hello
    • I’ll guess I’ll have to wait patiently, along with my website viewers, in hopes my Iframe form will display in EdgeHTML 18.

    • Any estimate as to when EdgeHTML 18 might be available to the public?

    • @Clive S.: EdgeHTML 18 should be available in this fall’s Windows 10 update; current insider releases have it.

      @David S.: With Microsoft Edge 43.17713.1000.0 (Microsoft EdgeHTML 18.17713) the srcdoc property of `` remains unsupported and undefined. I don’t have a public URL that I can provide, but the test performed in the Calibre web app JavaScript is:

                  if (document.createElement("iframe").srcdoc === undefined) {
                      document.body.innerHTML = "" + _("You are using a browser that does not have the iframe srcdoc attribute. This is not supported. Use a better browser such as Google Chrome
       or Mozilla Firefox
      , instead. You can also use the simplified [/mobile](%5c%22mobile%5c%22) interface if you do not have access to a modern browser.");
                      return;
                  }
      
    • Chris C,
      Thanks for the approximate time estimate.

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

    Sign in