The DOM as a Tree Structure