Martin Honnen wrote:
Csaba Gabor wrote: Martin Honnen wrote:
If you disable scripting in IE then it does not build a DOM.
I find this statement interesting. Is it documented?
No, I was guessing and should have said so.
And your thinking that while scripting inside the page can be
disabled nevertheless someone might automate IE with script
from the outside is correct and therefore you are right, the
DOM is build nevertheless as it looks.
In principle a web browser must have an internal (software)
representation of the HTML just in order to display/present its
contents. Given modern software design the odds have go to be good that
that representation is a collection of co-operating objects (probably
C++ objects) that represent an object model themselves. The question
would then be the extent to which the object model that interacts with
scripts was something separate from (or parallel to) the object model
that the browser employed itself, or whether scripting just exposed an
interface to that object model. In the latter case the scriptable object
model would always be there regardless of whether it was scripted and in
the former case its creation may not be necessary whenever it could not
be scripted (but there would be no way of knowing/testing).
Given a sufficiently large page, and particularly a sufficiently large
table, I would not expect much improvement in load/display time to be
apparent either way. Working out just the layout for a table is a long
way form being trivial (worse if the browser is attempting progressive
rendering), and there must be some representation of the table in order
to do so.
Richard.