WordPress.org

Forums

Some plugins generate invalid XHTML (7 posts)

  1. flami
    Member
    Posted 7 years ago #

    Hi I just ran the XHTML validator ( 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.

  2. theapparatus
    Member
    Posted 7 years ago #

    Neither do we since we don't know what site you're validating against. :)

  3. cwoodside
    Member
    Posted 7 years ago #

    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.

  4. Lester Chan
    Member
    Posted 7 years ago #

    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)

  5. 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.

  6. thydzik
    Member
    Posted 7 years ago #

    Here is an alternative plugin that validates valid XHTML

    Unfortunately, I don't like the color scheme.

  7. Anonymous
    Unregistered
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic