I was under the impression that any object, compound or not, following a preposition such as "to" must take the objective case; therefore, "Give this work to whomever looks idle."
However, in the classic book, The Elements of Style, the following passages states otherwise:
Give this work to whoever looks idle.
In the last example, whoever is the subject of looks idle; the object of the preposition to is the entire clause whoever looks idle.
What am I missing here? Wouldn't the fact that the clause is the object to the preposition "to" make whomever the right choice?