Title: Some plugins generate invalid XHTML
Last modified: August 18, 2016

---

# Some plugins generate invalid XHTML

 *  [flami](https://wordpress.org/support/users/flami/)
 * (@flami)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/)
 * Hi I just ran the XHTML validator ( [http://validator.w3.org/](http://validator.w3.org/)),
   and i had 9 errors about ALT, HREF … beeing in uppercase, this is automatically
   generated code when i post images from the upload tab.
    what can be done to make
   image autoposting write in lowercase ?
 * And then i have the “SyntaxHighlighter” plugin to post nicely colored code.
    
   thing is i get 1 error : <pre name=”code” class=”java”> … there is no attribute“
   name”. What is a bit strange the validator seems to ignore all the other “pre
   name” . I dont really understand whats the problem is here.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [theapparatus](https://wordpress.org/support/users/theapparatus/)
 * (@theapparatus)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661329)
 * Neither do we since we don’t know what site you’re validating against. 🙂
 *  [cwoodside](https://wordpress.org/support/users/cwoodside/)
 * (@cwoodside)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661331)
 * Hi Flami,
    Perhaps a link to where the problem is happening would help. Also 
   I’m not 100% but I don’t believe that name attributes are allowed (based on standards)
   in a pre tag.
 *  [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661332)
 * it is YOUR duty to ensure your site is XHTML valid and not the plugin because
   the validation is broken by both the theme and plugin (combination)
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661387)
 * SyntaxHighlighter unfortunately has to validate invalid XHTML in order for the
   Javascript highlighting package it uses to work. It’s annoying, I know, but I
   don’t have a choice really.
 *  [thydzik](https://wordpress.org/support/users/thydzik/)
 * (@thydzik)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661401)
 * Here is an [alternative plugin](http://wordpress.org/extend/plugins/codecolorer/)
   that validates valid XHTML
 * Unfortunately, I don’t like the color scheme.
 *  749510
 * [17 years, 11 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661517)
 * Hi,
 * Please check the xhtml mod for syntaxhighlighter (javascript package), it now
   supports xhtml, the plugins can be adapted to it to solve xhtml problems. Note
   that this mod is for the syntaxhighlighter javascript package which is used by
   plugins.
 * The mod can be found at:
    [http://blog.onursafak.com/2008/07/syntaxhighlighter-mod-to-xhtml-css-and.html](http://blog.onursafak.com/2008/07/syntaxhighlighter-mod-to-xhtml-css-and.html)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Some plugins generate invalid XHTML’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)
 * [xhtml](https://wordpress.org/support/topic-tag/xhtml/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 7 participants
 * Last reply from: 749510
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/some-plugins-generate-invalid-xhtml/#post-661517)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
