[BUG #7681] Apply only appropriate attributes to the content element