- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 03 May 2011 11:58:12 -0400
- To: public-iri@w3.org
On 5/3/11 4:50 AM, Julian Reschke wrote: >> <iframe id=foo src="about://blank" onload="test()"></iframe> >> <script> >> var doc = document.getElementById("foo").contentDocument; >> var anchor = doc.createElement("a"); >> anchor.setAttribute("href", "foo.html") >> doc.body.appendChild(anchor); >> alert(anchor.href); >> </script> >> ... > > FF4: resolves against the document's URI (not about://blank) In general, for iframes containing about:blank documents we use the "originating" uri of the about:blank as the base URI. We found that this was needed for web compat in at least some cases. -Boris
Received on Tuesday, 3 May 2011 15:59:45 UTC