Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

The XmlMini LibXML engine doesn't have a test, does not support CDATA elements, and treats whitespace differently from the REXML engine

#3313

The XmlMini LibXML engine cannot handle documents with CDATA blocks and treats whitespace differently than the REXML engine. The engine ignores content inside CDATA blocks and end up producing nil Hash keys.

I have written a test for the LibXML engine (it didn't have one) that exposes both of these issues along with a small patch which modifies activesupport/lib/activesupport/xml_mini/libxml.rb so that the test passes. The result is a version of libxml.rb which (a) handles CDATA elements and (b) treats whitespace similarly to the REXML engine. The test was based on the existing Nokogiri test.

Reported by Jacob Lauemøller · October 2nd, 2009 @ 03:52 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jacob Lauemøller
    Jacob Lauemøller
    • Tag changed from cdata, libxml, whitespace, xml-mini to cdata, libxml, patch, whitespace, xml-mini

    October 2nd, 2009 @ 04:34 PM

  2. Jacob Lauemøller
  3. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 6th, 2010 @ 06:41 AM