HTML Tidy is claiming wrong HTML code

KirstenLangholz - October 22, 2009 - 14:01
Project:AddThis Button
Version:6.x-2.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello,

the header give out the following code:

<script type="text/javascript">
<!--//--><![CDATA[//><!--

    addthis_pub = 'BJSDE';
    addthis_logo = 'http://www.addthis.com/images/yourlogo.png';
    addthis_logo_background = 'EFEFFF';
    addthis_logo_color = '666699';
    addthis_brand = 'BSC';
    addthis_options = '<p>favorites, email, digg, delicious, myspace, facebook, google, live, aim, aolfav, myweb, twitter, more</p>';
    addthis_disable_flash = 'true';

//--><!]]>
</script>

HTML Tidy claims addthis_options should have a <\ /p> instead of a simple

at the end to give out correct code. How do I have to fix this?

#1

wesku - October 24, 2009 - 18:46
Status:active» closed

HTML Tidy is wrong. To my best knowledge in XML CDATA sections you can have any unescaped data with the exception of ]]>.

 
 

Drupal is a registered trademark of Dries Buytaert.