Created
January 7, 2013 23:48
-
-
Save benknight/4479713 to your computer and use it in GitHub Desktop.
Look! Protocol relative URIs don't work in data URIs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Look! Protocol relative URIs don't work in data URIs. | |
*/ | |
iframe { width: 500px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- <img src="//placehold.it/300"> : Doesn't work! --> | |
<iframe src="data:text/html;base64,PGltZyBzcmM9Ii8vcGxhY2Vob2xkLml0LzMwMCI+"></iframe> | |
<!-- <img src="http://placehold.it/300"> : Works! --> | |
<iframe src="data:text/html;base64,PGltZyBzcmM9Imh0dHA6Ly9wbGFjZWhvbGQuaXQvMzAwIj4="></iframe> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment