Menu

#19 Style parsing of comment characters

v0.1.2
open
Parser (8)
5
2012-01-05
2012-01-05
No

As reported here:

https://sourceforge.net/projects/hotsax/forums/forum/91440/topic/888062

The following html

<style>
// <![CDATA[
<!--
body,td,a,p,.h{font-family:arial,sans-serif;}
-->
// ]]>
</style>

is parsed and reordered as:

<style><![CDATA[
<!--
body,td,a,p,.h{font-family:arial,sans-serif;}
-->
//
// ]]>
</style>

In a similar manner this html:

<style type="text/css">
/*<![CDATA[*/
body { background-image: url("marble.png?width=300&height=300") }
/*]]>*/
</style>

is reordered to be

*/
body { background-image: url("marble.png?width=300&height=300") }
/*
/**/

Discussion


Log in to post a comment.

MongoDB Logo MongoDB