do not search the whole DOM for radio/checkbox elements

as per comments in #1056