Shouldn't this explicitly say whether to set these or not? Assuming the `checked` state and the classes are always in sync seems wrong.