added support for select, options and optgroups
tests for selects, options and optgroups