Adding class="customclass" after post_class() inserts a _second_ class-attribute, which will neither work as expected nor validate. Solution added.