<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>> This could be accomplished with just an iframe is there was a way to<br>> make <iframe> size itself automatically according to the its contents.
<br>>  I've mentioned this before.  Regarding "replaced elements", CSS<br>> doesn't say anything regarding the integral dimensions of an <iframe>.<br>>  Most browsers (all graphical browsers?) just assign a default height
<br>> and width if none are specified on an <iframe>.  If HTML could define<br>> the integral dimensions of an iframe to auto-fit its contents, that<br>> would be nice.  Even if that required an extra attribute on the
<br>> <iframe> I'd be for it.<br><br>The thing with an iframe is: it has it's own global context (an other<br>window object), and it's a different document. This has it advantages<br>and disadvantages.
<br><br>The "replace" 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't fully understand the suggestion about replacement.  My intention was that the inclusion would be automatic and not in response to user actions.  Wouldn't it be simpler and more direct to use an iframe since that seems to be what the element is intended for?  Were you suggesting that replacement is supported by HTML5 as it stands now?
<br><br></div></div>