Explorer Mac bug - class name starts with space

Explorer Mac can't handle class names that start with a space: it applies very weird styles to the element.

In this example the last paragraph renders weirdly in IE Mac. It gets a red background color and the color specified in the (unused) p.blue class.

This paragraph has class="red"

This paragraph has class="red "

This paragraph has class=" red"