HTML code set as src in iframe not showing in IE 11 -
<html> <head> </head> <body> <iframe id='smartpartframe' src='data:text/html;charset=utf-8,<h1>integreat</h1>' scrolling='no' width='1000px' height='70px'></iframe> </body> </html> the above html code used show h1 in iframe. chrome, firefox, edge working fine. ie 11 showing error: page cannot displayed. wants set html directly in src not file path.
internet explorer 11 not support data uris in iframes, nor other way embed html inline in iframe.
the "intended" way in standard srcdoc attribute, not src attribute given data uri, browser support srcdoc remains poor.
Comments
Post a Comment