I'm having a problem using the RFC 2397 data url scheme with IE versions 6-9. My sample code below works without problem when using current versions of Safari, FF, Opera and Chrome.
data:text/html;base64,PG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMDt1cmw9aHR0cDovL2dvb2dsZS5jb20vIj4g
or
data:text/html,%3Cmeta%20http-equiv%3D%22refresh%22%20content%3D%220%3Burl%3Dhttp%3A//google.com/%22%3E%20
If the above code is pasted in almost any browser excluding IE it will navigate to google.com, when attempting with IE it fails with the following error.
The webpage cannot be displayed
Most likely cause:
- Some content or files on this webpage require a program that you don't have installed.
What you can try:
Search online for a program you can use to view this web content.
Retype the address.
When inspecting the page source of the IE error page generated there is a link that makes reference to File Associations and protocols.
Protocol Type:
Description: UnKnown
Windows does not recognize this Protocol.
I realize that using the data: protocol is probably not the most straight forward or in most cases the best option, but I must use it for this particular project.
I have searched all over for a solution and tried many examples with IE hoping it was my syntax but have yet found a solution.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…