When language icons module (http://drupal.org/project/languageicons) is enabled. The language flag is also included inside the option tag - according to the W3C validator this is not valid XHTML 1.0

<div class="content">
<select id="language-select-list" onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value="/" selected="selected"><img src='/sites/all/modules/languageicons/flags/en.png' class="language-icon" alt="English" title="English" width="16" height="12" /> English</option>
<option value="/it"><img src='/sites/all/modules/languageicons/flags/it.png' class="language-icon" alt="Italiano" title="Italiano" width="16" height="12" /> Italiano</option>
<option value="/es"><img src='/sites/all/modules/languageicons/flags/es.png' class="language-icon" alt="Español" title="Español" width="16" height="12" /> Español</option>
</select>

Comments

czhang.zodo’s picture

Hi, I was having the same problem until I went to the Language Icons settings page and disabled the display for the Language Dropdown block. The flags still show up there, previously there were duplicates. Changing this setting seemed to remove the image from the dropdown and my site validates to XHTML 1.0 Strict now!

dubois’s picture

Priority: Normal » Minor

Thanks czhang.zodo this solved the problem for me. I wonder why that's the default behaviour?

mohammed j. razem’s picture

Status: Active » Patch (to be ported)

Introduced a new option in the Language switcher dropdown block to force disable the Language icons module to print the icons along with the links.

mohammed j. razem’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.