A simple dom library for phi.