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 9 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.

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

    Sign in