On this page there are examples implementation of a DOM like API using references in component objects (nextSibling, prevSibling, etc.). The other way is to use an array of elements.
What would be the best solution for QF2 ?
In the past, we used an array of elements. It makes it easy to iterate over the elements. It is also easy to manage since it works like an array.
— Bertrand Mansion 2006-06-29 13:33
I think we should start with an array and naive implementations of getElementById() / getElementsByName() (with iteration over all elements). If something does not work out, we can always change it later… :)
— Alexey Borzov 2006-07-04 23:50