how html dom implemented in browser . i want to write a code to produce a html dom emulator. can anyone help me?