In line 64 of the page.tpl.php the conditions for printing the class are not correct:

<?php if ($logo && !$site_slogan): ?>class="logo-picture-true-slogan-false"<?php endif; ?>
<?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>

So if there is no $site_slogan both class-attributes are printed:

<h1 class="logo-picture-true-slogan-false"  class="logo-picture-true"><a href="/" title="Home">MySite</a></h1>

And this causes the HTML-Validation-Error: Duplicate specification of attribute "class"

Comments

Deepika.chavan’s picture

Hi,
I fixed that html error by replacing following code in page.tpl.php

 <?php if ($site_name): ?>
 <!-- if logo picture is defined, text is aligned to left -->
 
    <h1 <?php if ($logo && !$site_slogan): ?>class="logo-picture-true-slogan-false"<?php endif; ?>  <?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>><a href="<?php echo $front_page; ?>" title="<?php echo t('Home') ?>"><?php echo $site_name ?></a></h1>
  <?php endif; ?>
  
 <?php if ($site_slogan): ?>
 <!-- if logo defined, text is aligned to left -->
    <strong <?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>><?php echo $site_slogan; ?></strong>
  <?php endif; ?> 

With the following code :

 <?php if ($site_name): ?>
 <!-- if logo picture is defined, text is aligned to left -->
    <?php if ($logo && !$site_slogan): ?>
 <h1 class="logo-picture-true-slogan-false <?php if ($logo): ?>logo-picture-true<?php endif; ?>"><a href="<?php echo $front_page; ?>" title="<?php echo t('Home') ?>"><?php echo $site_name ?></a></h1>
  <?php endif; ?>

    <?php if ($site_slogan): ?>
 <h1 class="<?php if ($logo): ?>logo-picture-true<?php endif; ?>"><a href="<?php echo $front_page; ?>" title="<?php echo t('Home') ?>"><?php echo $site_name ?></a></h1>
    <strong <?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>><?php echo $site_slogan; ?></strong>
     <?php endif; ?>
 <?php endif; ?> 

HTH!!

Rgrds,

Deepika Chavan.

smitty’s picture

Seems to work correctly. Thank you!

Will this be in the next release?