|
Posted by Toby Inkster on 11/14/06 19:02
Joel Shepherd wrote:
> I'm confused. Why can't exactly the same problem happen with SSI (which
> strictly speaking, is not part of HTML, but is used closely with it)?
It does happen, but it's not a problem there.
> I.e., what difference can it make whether the include functionality is
> client-side or server-side?
Because the client needs to build a DOM tree out of the HTML file, whereas
the server doesn't. So it matters to the client whether an include could
possibly break the DOM tree, whereas it doesn't matter to the server.
The obvious solution is that the client could perform the inclusion
*before* building a DOM tree, but that requires a two-pass parse, which
would slow down rendering.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|