Switch the CSS class and ID when assigning them (see #6191)