Download & Extend

HTML Tidy is claiming wrong HTML code

Project:AddThis
Version:6.x-2.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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?

Comments

#1

Status:active» closed (fixed)

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