WordPress.org

Ready to get started?Download WordPress

Forums

Possible valid HTML? (5 posts)

  1. zenofshen
    Member
    Posted 6 years ago #

    The plugin works great but the class attribute for the <script> tag does not validate. A possible plugin improvement is to use a different attribute so the code validates.

    Cheers.

  2. whooami
    Member
    Posted 6 years ago #

    no, the solution to script tags not being valid is to wrap them properly, like so:

    <script type="text/javascript">
    //<![CDATA[
    if (cherie) wordpress();
    //]]>
    </script>
  3. zenofshen
    Member
    Posted 6 years ago #

    I guess I phrased my statement a little ambiguously. Instead of having <script type="text/javascript">, the plugin uses <script class="javascript"> which does not validate.

  4. keyes
    Member
    Posted 6 years ago #

    I've made some small changes to the HTML markup to get it W3C valid. You can get the modified version here : http://lapin-blanc.net/downloads/google_syntax_highlighter.phps

    With this patch, only the plugin markup will be valid, the core JS code always require to use <pre name="code"> which is invalid.

  5. kartagos
    Member
    Posted 5 years ago #

    I've hacked a little bit your plugin to make it XHTML comliant.

    You can see how I simply did it here : http://blog.khaled-labidi.net/?p=81

    It would be great if futur releases take into account XHTML compliance.

    Regards,

Topic Closed

This topic has been closed to new replies.

About this Topic