This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: Multipage: http://www.whatwg.org/C#the-iframe-element Complete: http://www.whatwg.org/c#the-iframe-element Comment: Why not using src attribute with dataURI ? It's supported by all browsers : <iframe src="data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%3Chtml%20lang%3D%22e n%22%3E%3Chead%3E%3Cmeta%20charset%3D%22utf-8%22%2F%3E%3Ctitle%3E%3C%2Ftitle%3 E%3C%2Fhead%3E%3Cbody%3E%3Cp%3Edid%20you%20get%20a%20cover%20picture%20yet%3F% 3C%2Fp%3E%3C%2Fbody%3E%3C%2Fhtml%3E"></iframe> Posted from: 192.44.63.161 User agent: Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0
We can replace this: <iframe seamless sandbox srcdoc="<p>did you get a cover picture yet?"></iframe> By: <iframe seamless sandbox src="data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%3Chtml%20lang%3D%22en%22%3E%3Chead%3E%3Cmeta%20charset%3D%22utf-8%22%2F%3E%3Ctitle%3E%3C%2Ftitle%3E%3C%2Fhead%3E%3Cbody%3E%3Cp%3Edid%20you%20get%20a%20cover%20picture%20yet%3F%3C%2Fp%3E%3C%2Fbody%3E%3C%2Fhtml%3E"></iframe> And it's supported by all browsers :)
Does the second of those snippets in comment 1 really seem better to you than the first? Yes, for now data: URLs are better because they work more. But in 20 years, I think life would be better if we're using the cleaner and easier-to-escape version rather than data: URLs.