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
Comment #1
czhang.zodo commentedHi, 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!
Comment #2
dubois commentedThanks czhang.zodo this solved the problem for me. I wonder why that's the default behaviour?
Comment #3
mohammed j. razemIntroduced a new option in the Language switcher dropdown block to force disable the Language icons module to print the icons along with the links.
Comment #4
mohammed j. razem