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.

libxml xml_mini backend producing incorrect hashes

#2258

Using the xml_mini backend: 'LibXML' results in incorrect hashs when some input XML.

I'd like to extend the REXML equivalency tests that Aaron (tenderlove) has added for Nokogiri to cover all three xml_mini backends:

  • LibXML, Nokogiri, and JDOM

for JDOM backend, see: #2238 Add JDOM (JRuby) as XmlMini backend

But I'm not sure what is the cleanest way to do this.

I have a test in this repo:

http://github.com/stepheneb/rail...

that shows at least one way LibXML fails.

Please take a a look at that test and let me know if that or some other pattern would be useful for expressing a set of tests for all the xml_mini backends.

Reported by Stephen Bannasch · March 16th, 2009 @ 08:05 PM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Stephen Bannasch
    Stephen Bannasch

    I've updated my tests so that I've got 10 of the nokogiri tests running for all the alternate xml_mini backends.

    The code is here:

    http://github.com/stepheneb/rail...

    libxml fails two.

    The readme.txt file here shows the results of running the tests for all the backends:

    http://github.com/stepheneb/rail...

    Nokogiri and JDOM pass all 10.

    I'll see about getting a real patch attached here soon.

    March 16th, 2009 @ 10:40 PM

  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Importance changed from to

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:53 PM

  4. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:53 PM