I'm new to extension development, and was trying to enumerate
available forms and controls in it. And I guess iterating through DOM
should be good solution instead of parsing html.

How should I get started? Any guidelines?