Mozilla interview question

The question was to come up with an algorithm to render html objects