WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WPaudio MP3 Player] Valid XHTML problem (4 posts)

  1. Christine
    Member
    Posted 4 years ago #

    Hi,

    I just tested the W3C validation of a site I'm developing with this plugin and it breaks the validation.

    Its because the javascript it outputs in the source has ampersands eg:if (oStatus.success && isset('wpa_params')) { in places I think.

    Please could you advise if it will still work if I change these to & ?

    Thanks

    http://wordpress.org/extend/plugins/wpaudio-mp3-player/

  2. Christine
    Member
    Posted 4 years ago #

    nevermind- I figured out how to validate it sorry-

    I inserted some CData tags in the wpaudio.php for the javascript that was using the && symbols.
    <script type="text/javascript">
    /*<![CDATA[*/
    ... code here ...
    /*]]>*/
    </script>

  3. toddiceton
    Member
    Posted 4 years ago #

    Thanks for bringing this up! I've included CDATA tags in the next release, which will validate out of the box.

    Let me know if you ever have any other comments or questions! Much appreciated.

    Todd

  4. Christine
    Member
    Posted 4 years ago #

    Cool :)

Topic Closed

This topic has been closed to new replies.

About this Topic