Commits on Jan 10, 2012
  1. updating docs

    tenderlove committed Jan 10, 2012
Commits on Jan 9, 2012
Commits on Jan 7, 2012
  1. Fix for issue#529. It seems easy encoding conversion didn't work, so …

    …it changed to use java.nio.charset classes.
    yokolet committed Jan 7, 2012
Commits on Jan 4, 2012
  1. Fix for issue#589

    yokolet committed Jan 4, 2012
Commits on Dec 21, 2011
  1. Fix for issue586. Limits number of entities and nodes to default valu…

    …es (100000 and 3000 respectively). There's a different between Xerces and libxml2 on entity reference processing. Xerces processes the reference while libxml2 simply ignores the reference. I couldn't figure out how to control that. It should be considered at some point.
    yokolet committed Dec 21, 2011
Commits on Dec 16, 2011
  1. Don't leak memory when we change Document encoding.

    The following will leak memory without this:
      str = "<html></html>"
      loop do
        doc = Nokogiri::HTML(str)
        doc.encoding = 'UTF-8'
    ender672 committed Dec 16, 2011
  2. Re-introduce the jumping SAX handler for JRuby

    JRuby doesn't have full SAX push parser support yet, so use the
    regular SAX parser with the jumping handler.
    ender672 committed Dec 16, 2011
Commits on Dec 15, 2011
  1. Don't free namespace nodes when removed from a node set.

    We free all namespace nodes at GC of the node set.
    This prevents a potential segv when we have a reference to the
    removed namespace node. A unit test for this has been added to
    Another potential segv is during GC, and was introduced by
    2675a75. I was unable to create a reasonable unit test for
    this one. This script triggers it:
    loop do
      xml = Nokogiri.XML('<foo xmlns:n0="" />')
      list = xml.xpath('//namespace::*')
    ender672 committed Dec 15, 2011
Commits on Dec 13, 2011
Commits on Dec 12, 2011
Commits on Dec 9, 2011
  1. Add HTML SAX PushParser and use it for HTML encoding detection.

    This fixes a memory leak that was triggered by a SAX parser that
    relied on throw / catch in lib/nokogiri/html/document.rb.
    ender672 committed Dec 9, 2011
Commits on Dec 8, 2011
Commits on Dec 7, 2011
  1. Diverses correct test result for pure Java version because libxml2 be…

    …havior is too misterious to figure out the rule.
    yokolet committed Dec 7, 2011
  2. Corrects typo of a test name

    yokolet committed Dec 7, 2011
Commits on Dec 2, 2011
  1. Don't leak memory when a SAX parser uses a SAX handler that longjmps

    This is not a contrived unit test. Just look at the current state of
    ender672 committed Dec 2, 2011
Commits on Dec 1, 2011
  1. Don't leak memory when Nokogiri creates a Sax Parser Context

    libxml2 initializes parser contexts with a default SAX parser.
    Prevent memory leaks by immediately freeing the parser since
    Nokogiri uses its own.
    ender672 committed Dec 1, 2011
Commits on Nov 30, 2011
  1. Use ID variable in a more idiomatic way in html_document.c.

    Avoids calling rb_intern() for every new HTML Document.
    Removes the local variable id_encoding_found which was not even used.
    ender672 committed Nov 30, 2011
Commits on Nov 29, 2011
  1. Plug a memory leak in XML::Node#replace

    An XML node was not freed properly after being replaced.
    ender672 committed Jul 29, 2011
Commits on Nov 23, 2011
  1. Merge pull request #511 from ender672/reader_segfault_alt

    Disable the node cache when we are using an XML Reader
    ender672 committed Nov 23, 2011
  2. Disable the node cache when we are using an XML Reader

    This fixes a segfault with XML Readers when GC happens at the wrong time.
    ender672 committed Aug 8, 2011
  3. Skip GC-dependent test when running JRuby

    61080 introduced a test that produced some ugly warnings in JRuby.
    Skip the test when running in JRuby, since it does not apply.
    ender672 committed Nov 23, 2011
  4. Merge pull request #506 from ender672/odd_name_for_value

    The member doc of nokogiriTuple is a VALUE, not a libxml doc pointer
    ender672 committed Nov 23, 2011
  5. Merge pull request #504 from ender672/xslt_func_memleak

    Fix two memory leaks with custom XSLT function arguments
    ender672 committed Nov 23, 2011
  6. Merge remote-tracking branch 'ender672/custom_xslt_func'

    ender672 committed Nov 23, 2011
Commits on Nov 18, 2011
Commits on Nov 17, 2011
  1. Merge pull request #563 from me/c14n_fix

    C14n fix and new parameters
    tenderlove committed Nov 17, 2011
Commits on Nov 13, 2011
  1. Check for correct element type before accessing namespace definitions.

    When recursively removing namespaces, make sure that we only access
    node->nsdef for elements whose struct has that field.
    This caused a crash in test_remove_entity_namespace on one machine
    (but not the other).
    ender672 committed Nov 13, 2011