<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&gt; This could be accomplished with just an iframe is there was a way to<br>&gt; make &lt;iframe&gt; size itself automatically according to the its contents.
<br>&gt;&nbsp;&nbsp;I&#39;ve mentioned this before.&nbsp;&nbsp;Regarding &quot;replaced elements&quot;, CSS<br>&gt; doesn&#39;t say anything regarding the integral dimensions of an &lt;iframe&gt;.<br>&gt;&nbsp;&nbsp;Most browsers (all graphical browsers?) just assign a default height
<br>&gt; and width if none are specified on an &lt;iframe&gt;.&nbsp;&nbsp;If HTML could define<br>&gt; the integral dimensions of an iframe to auto-fit its contents, that<br>&gt; would be nice.&nbsp;&nbsp;Even if that required an extra attribute on the
<br>&gt; &lt;iframe&gt; I&#39;d be for it.<br><br>The thing with an iframe is: it has it&#39;s own global context (an other<br>window object), and it&#39;s a different document. This has it advantages<br>and disadvantages.
<br><br>The &quot;replace&quot; pattern I described here is actually used a lot. Ruby on<br>Rails uses it a lot, iUI provides for it (fetching the next 10<br>elements).</blockquote><div><br><br>What Jon suggests is more what I had in mind - basically an iframe which can be laid out in the document flow like a regular div.
<br><br>I didn&#39;t fully understand the suggestion about replacement.&nbsp; My intention was that the inclusion would be automatic and not in response to user actions.&nbsp; Wouldn&#39;t it be simpler and more direct to use an iframe since that seems to be what the element is intended for?&nbsp; Were you suggesting that replacement is supported by HTML5 as it stands now?
<br><br></div></div>