Entry
is it possible to create document.all from all elements for use in IE?
Dec 11th, 2001 06:07
Jean-Bernard Valentaten, Gareth Hay,
document.all is IE-Syntax :)
Yes, very good, I think it's fairly obv I meant NN.
Ok, I didn't mean to be harsh or anything :)
So basically you want to create a tree-object that works the same way
document.all works in IE. I guess it is possible, but is it worth the
trouble (it would take very long to do so, since you need to do
everything the same way that IE does it, including the
document.all.tags syntax). If you have the possibility, I'd recommend
to use DOM (as described in various specs), that's faster and more
reliable than rebuilding the whole stuff.
On the other hand, if you really want to rebuild it, you should
approach it using recursive object definition and base object that can
be extended. But it's a lot of work
HTH