Possible valid HTML? (5 posts)

  1. zenofshen
    Posted 8 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.


  2. whooami
    Posted 8 years ago #

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

    <script type="text/javascript">
    if (cherie) wordpress();
  3. zenofshen
    Posted 8 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
    Posted 7 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
    Posted 7 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.


Topic Closed

This topic has been closed to new replies.

About this Topic