-
-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nokogiri::XML::NodeSet#to_xhtml adds invalid CDATA tags #311
Comments
I need to rewrite this example in C and supply it to the libxml2 team. I suspect this is a bug in libxml2. |
Bump. |
Ran the gist with libxml2 2.6.16 and didn't get any CDATA tags so, yeah, looks like a libxml bug. |
Same problem with master and ubuntu 10.10 |
Confirmed bug still present upstream in libxml 2.9.4. |
I believe this behavior was introduced in libxml 2.6.31 in GNOME/libxml2@dbd6105 and appears to be intentional. Closing. |
Run the following gist: https://gist.github.com/f1ec33937642648a78cb
Notice the
<![CDATA[ ]]>
tag that is created inside the<style>
tag. This is bad becauseCDATA
tags inside<style>
tags require CSS comments around them or they have they cause the CSS to not be parsed by the browser.Info here about
CDATA
tags: http://en.wikipedia.org/wiki/CDATA#Use_of_CDATA_in_program_outputFixies?
The text was updated successfully, but these errors were encountered: