issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
262k
⌀
issue_title
stringlengths
1
1.02k
issue_comments_url
stringlengths
53
116
issue_comments_count
int64
0
2.49k
issue_created_at
stringdate
1999-03-17 02:06:42
2025-06-23 11:41:49
issue_updated_at
stringdate
2000-02-10 06:43:57
2025-06-23 11:43:00
issue_html_url
stringlengths
34
97
issue_github_id
int64
132
3.17B
issue_number
int64
1
215k
[ "sparklemotion", "nokogiri" ]
Given this example of bad markup: <pre> &lt;?xml version='1.0'?&gt;<br/>&lt;root&gt;<br/>&lt;element&gt;&lt;![CDATA[<br/>]]&gt;&lt;/element&gt;<br/>&lt;<br/>]]&gt;&lt;/element&gt;<br/>&lt;/root&gt; </pre> Nokogiri will crash when attempting to parse it on JRuby 1.7.1. This problem does not occur with MRI or JRuby 1...
Bad XML causes Nokogiri to crash under JRuby 1.7.1
https://api.github.com/repos/sparklemotion/nokogiri/issues/824/comments
2
2013-01-04T17:14:39Z
2016-02-17T05:04:39Z
https://github.com/sparklemotion/nokogiri/issues/824
9,687,879
824
[ "sparklemotion", "nokogiri" ]
Hello, After upgrading from 1.5.5 to 1.5.6, one of the tests in my application fails. I extracted a minimal test that fails in 1.5.6 but not 1.5.5: ``` ruby require "helper" class TestNamespace < Nokogiri::TestCase def test_namespace xml = <<XML <?xml version="1.0"?> <soap:Envelope xmlns:xsi="http://www.w3.org...
[BUG] Failing to find an XML attribute prefixed by a namespace
https://api.github.com/repos/sparklemotion/nokogiri/issues/823/comments
1
2013-01-04T10:59:52Z
2013-01-04T18:01:01Z
https://github.com/sparklemotion/nokogiri/issues/823
9,674,512
823
[ "sparklemotion", "nokogiri" ]
Hello, after upgrading to 1.5.6 I've encountered exception raised by #check_encoding introduced in 265e199322 (pull request #756) by @soulcutter. Encoding is passed as "utf-8" instead of "UTF-8" by rubyjedi-soap4r (https://github.com/rubyjedi/soap4r). Backtrace: ``` nokogiri-1.5.6/lib/nokogiri/xml/sax/parser.rb:117:i...
XML::SAX::Parser#check_encoding not accepting utf-8
https://api.github.com/repos/sparklemotion/nokogiri/issues/822/comments
5
2013-01-03T14:32:56Z
2014-02-05T17:55:16Z
https://github.com/sparklemotion/nokogiri/issues/822
9,644,649
822
[ "sparklemotion", "nokogiri" ]
The version `1.5.6` which is marked as `unreleased` was installed when i ran `gem update`. So the part of my code began failing. ![ _001](https://f.cloud.github.com/assets/137882/38384/6a510a5a-54e8-11e2-9c0f-d23e3f159ce6.png) ![ _002](https://f.cloud.github.com/assets/137882/38385/6d4272da-54e8-11e2-87ee-188074e06051...
Defective library version appeared at rubygems index
https://api.github.com/repos/sparklemotion/nokogiri/issues/820/comments
2
2013-01-02T14:34:41Z
2013-01-03T08:19:38Z
https://github.com/sparklemotion/nokogiri/issues/820
9,616,951
820
[ "sparklemotion", "nokogiri" ]
I just installed a gem that had a dependency on Nokogiri (amazon_product) and Just doing a bundle exec on a script I run I get this I am using Ruby 1.9.3p362 Bundler 1.2.3 OSX 10.8.2 apple-gcc42 (via brew) libxml2 /Users/Emmanuel/.gem/ruby/1.9.3/gems/nokogiri-1.5.6/lib/nokogiri/nokogiri.bundle: [BUG] Segmen...
Issue with Nokogiri on Mountain Lion
https://api.github.com/repos/sparklemotion/nokogiri/issues/819/comments
3
2012-12-31T00:28:29Z
2013-01-06T22:57:17Z
https://github.com/sparklemotion/nokogiri/issues/819
9,587,153
819
[ "sparklemotion", "nokogiri" ]
Version 1.5.6 of Nokogiri returns `nil` for empty attributes in JRuby. [Demonstration gist](https://gist.github.com/4348818). As the gist shows, this did not happen under JRuby in 1.5.5 or under MRI in either version. I found a previous occurrence of this issue (#589) which was fixed in Nokogiri 1.5.1.
JRuby version inconsistency: nil for empty attributes
https://api.github.com/repos/sparklemotion/nokogiri/issues/818/comments
0
2012-12-20T21:46:15Z
2013-01-13T18:07:11Z
https://github.com/sparklemotion/nokogiri/issues/818
9,448,816
818
[ "sparklemotion", "nokogiri" ]
Tag v1.5.6.
https://api.github.com/repos/sparklemotion/nokogiri/issues/817/comments
1
2012-12-20T18:52:57Z
2012-12-20T20:09:49Z
https://github.com/sparklemotion/nokogiri/issues/817
9,443,357
817
[ "sparklemotion", "nokogiri" ]
1.56 seems to be requiring namespaces for fetching attribute values, while 1.55 would fail if you tried to include the namespace. Here is a test that demonstrates what I am seeing. `````` ruby it 'shows what is failing' do xml='<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://...
v1.56 changes attribute fetching
https://api.github.com/repos/sparklemotion/nokogiri/issues/816/comments
15
2012-12-20T17:58:22Z
2024-07-02T13:19:37Z
https://github.com/sparklemotion/nokogiri/issues/816
9,441,752
816
[ "sparklemotion", "nokogiri" ]
Using 1.5.5 and 1.5.6 I'm having the following issue. When going an XSL transform on text such as... &lt;p&gt;BEFORE &amp;ldquo;QUOTED&amp;rdquo; AFTER&lt;/p&gt; ...the entity references are getting stripped out when using apply-templates. It appears that this happens when text() nodes are processed. If I use copy-of ...
Entity references stripped for XSL transform using apply-templates (includes code to reproduce)
https://api.github.com/repos/sparklemotion/nokogiri/issues/815/comments
2
2012-12-20T15:48:54Z
2024-06-26T06:14:41Z
https://github.com/sparklemotion/nokogiri/issues/815
9,437,683
815
[ "sparklemotion", "nokogiri" ]
I found that upgrading to 1.5.6 breaks functionality that existed in 1.5.5 around building namespaced attributes. **Test code:** ``` ruby Nokogiri::XML::Builder.new { |xml| xml.root('xmlns:a' => 'a') { xml.element('a:b' => 'a:c') } } ``` **Error:** ``` Java::JavaLang::ClassCastException: org.jruby.RubyNil c...
v1.5.6 breaks Builder namespaced attributes
https://api.github.com/repos/sparklemotion/nokogiri/issues/814/comments
4
2012-12-20T04:49:41Z
2019-01-05T08:27:08Z
https://github.com/sparklemotion/nokogiri/issues/814
9,423,918
814
[ "sparklemotion", "nokogiri" ]
I am running on OSX Lion: > java -version > java version "1.6.0_37" > Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) > Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
Java::JavaLang::UnsupportedClassVersionError: org/cyberneko/dtd/DTDConfiguration with latest master
https://api.github.com/repos/sparklemotion/nokogiri/issues/811/comments
3
2012-12-17T04:13:01Z
2012-12-18T03:32:18Z
https://github.com/sparklemotion/nokogiri/issues/811
9,323,724
811
[ "sparklemotion", "nokogiri" ]
Just bought a brand spankin new MacBook Pro, installed Homebrew and trying to install Nokogiri. Followed all the instructions from the site given for Homebrew 0.9, but still getting installation errors. Has something changed?
Install with Homebrew 0.9.3
https://api.github.com/repos/sparklemotion/nokogiri/issues/809/comments
0
2012-12-14T23:07:56Z
2019-01-05T08:00:21Z
https://github.com/sparklemotion/nokogiri/issues/809
9,300,485
809
[ "sparklemotion", "nokogiri" ]
The JRuby c14n implementation appears to be broken, I can reproduce this in the test case I've written here https://github.com/morten/nokogiri/commit/4e32cab3c80502c42eff080613c3f5bbc326453d and you can see the difference in behavior here https://gist.github.com/ebb2641bd54dfe01a52d
JRuby c14n broken
https://api.github.com/repos/sparklemotion/nokogiri/issues/808/comments
1
2012-12-14T22:11:18Z
2013-11-20T08:18:51Z
https://github.com/sparklemotion/nokogiri/issues/808
9,299,169
808
[ "sparklemotion", "nokogiri" ]
Hello, I've found an issue when using nokogiri 1.5.5 or 1.5.6.rc3 on JRuby. Example.. data = IO.read("somefile.xml") doc = Nokogiri::XML.parse(data) .. this will just stall or raise an exception. The issue is that data[0] is actually a byte order marker in jruby, depending how the data is read.. so to resolve this,...
jruby byte order marker bug
https://api.github.com/repos/sparklemotion/nokogiri/issues/807/comments
1
2012-12-13T21:27:14Z
2021-12-06T19:50:01Z
https://github.com/sparklemotion/nokogiri/issues/807
9,267,194
807
[ "sparklemotion", "nokogiri" ]
Nokogiri hangs at 100% cpu usage when attempting to validate an ICML file using RelaxNG. I have to manually kill the `ruby` process each time it hangs. It seems to validate ok on smaller files but blows up on larger ones. Here's a code sample: ``` require 'nokogiri' schema = Nokogiri::XML::RelaxNG(File.open('schema/...
Hangs when validating XML file with RelaxNG
https://api.github.com/repos/sparklemotion/nokogiri/issues/806/comments
1
2012-12-12T18:57:29Z
2021-08-19T21:37:27Z
https://github.com/sparklemotion/nokogiri/issues/806
9,227,551
806
[ "sparklemotion", "nokogiri" ]
Searching for methods on [nokogiri.org](http://nokogiri.org/Nokogiri.html) returns a 500 response.
Method Search on nokogiri.org is broken
https://api.github.com/repos/sparklemotion/nokogiri/issues/804/comments
4
2012-12-04T00:13:30Z
2012-12-04T07:32:25Z
https://github.com/sparklemotion/nokogiri/issues/804
8,969,171
804
[ "sparklemotion", "nokogiri" ]
# Issue The documentation for `Nokogiri::XML::Node#namespace` currently says: _"returns the default namespace set on this node (as with an “xmlns=” attribute), as a Namespace object."_ It always returns the namespace of the node, not the "default namespace." This should be the correct behaviour: the implementation i...
XML::Node#namespace documentation is incorrect
https://api.github.com/repos/sparklemotion/nokogiri/issues/802/comments
1
2012-11-30T11:58:52Z
2013-11-21T14:24:09Z
https://github.com/sparklemotion/nokogiri/issues/802
8,854,667
802
[ "sparklemotion", "nokogiri" ]
Similar to #683, but only occurs when you write a graph: This program: ``` require 'rubygems' require 'rdf' require 'rdf/rdfxml' graph = RDF::Graph.new s = RDF::URI.new("http://rubygems.org/gems/rdf") p = RDF::DC.creator o = RDF::URI.new("http://ar.to/#self") graph << RDF::Statement.new(s, p, o) RD...
Another jruby NAMESPACE_ERR
https://api.github.com/repos/sparklemotion/nokogiri/issues/801/comments
4
2012-11-30T06:27:46Z
2013-03-11T08:26:11Z
https://github.com/sparklemotion/nokogiri/issues/801
8,845,064
801
[ "sparklemotion", "nokogiri" ]
Running Nokogiri 1.5.5 on Ruby 1.9.3p327 try the following: ``` Nokogiri::HTML.parse(%{<time datetime="2011-11-28"></time>}).errors ``` It generates the following: ``` [#<Nokogiri::XML::SyntaxError: Tag time invalid>] ``` This worked in a previous version. The time element is valid, although at one time it was rem...
Parsing HTML5 with <time> element generates error
https://api.github.com/repos/sparklemotion/nokogiri/issues/800/comments
1
2012-11-29T02:11:19Z
2021-04-29T07:39:01Z
https://github.com/sparklemotion/nokogiri/issues/800
8,793,846
800
[ "sparklemotion", "nokogiri" ]
master contains a great many bug fixes, especially with regards to JRuby compatibility, which are desperately needed. 1.5.5 was released more than 5 months ago. I think it's time for a bugfix release (1.5.6) and don't see any new bugs on master, or anything else that should present a problem. Can we get a new release?...
1.5.6 final release
https://api.github.com/repos/sparklemotion/nokogiri/issues/799/comments
20
2012-11-28T23:55:51Z
2012-12-19T17:03:12Z
https://github.com/sparklemotion/nokogiri/issues/799
8,790,446
799
[ "sparklemotion", "nokogiri" ]
``` 1) Failure: test_serialize_encoding_html(Nokogiri::XML::TestNodeEncoding) [/home/miked/code/oss/nokogiri/test/xml/test_node_encoding.rb:28]: --- expected +++ actual @@ -13,9 +13,9 @@ @import url(2ch_top.css); </style> <script> -&lt;!-- +&amp;lt;!-- function fcs(){document.f.STR.focus();} ---&gt; +--&amp;gt; ...
JRuby 1.7 test failure (encoding)
https://api.github.com/repos/sparklemotion/nokogiri/issues/798/comments
3
2012-11-27T00:26:55Z
2013-01-12T14:58:51Z
https://github.com/sparklemotion/nokogiri/issues/798
8,700,927
798
[ "sparklemotion", "nokogiri" ]
I tested this is IRB: ``` 1.9.3p286 :002 > require 'nokogiri' => true 1.9.3p286 :003 > Nokogiri::HTML::DocumentFragment.parse("") => #<Nokogiri::HTML::DocumentFragment:0x80829828 name="#document-fragment"> 1.9.3p286 :004 > Nokogiri::HTML::DocumentFragment.parse(" ") => #<Nokogiri::HTML::DocumentFragment:0x8043403...
Inconsistent parsing in CRuby vs JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/796/comments
1
2012-11-20T06:51:16Z
2016-02-17T05:07:08Z
https://github.com/sparklemotion/nokogiri/issues/796
8,494,682
796
[ "sparklemotion", "nokogiri" ]
In Nokogiri 1.5.1 through 1.5.5, the content of text nodes are altered in a DocumentFragment when parsed: ``` ruby jruby-1.6.7.2 :006 > Nokogiri::HTML::DocumentFragment.parse("<span>3:30pm</span>") => #<Nokogiri::HTML::DocumentFragment:0x7e2 name="#document-fragment" children=[#<Nokogiri::XML::Element:0x7e0 name="spa...
DocumentFragment parse alters text node content with JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/793/comments
3
2012-11-18T00:25:03Z
2013-01-15T07:28:33Z
https://github.com/sparklemotion/nokogiri/issues/793
8,446,291
793
[ "sparklemotion", "nokogiri" ]
jruby # xpath('//namespace::*').to_a still gives the error in the title. I'm using 1.5.6-rc2 java. ``` NokogiriHelpers.java:105:in `getCachedNodeOrCreate': java.lang.ClassCastException: nokogiri.XmlNamespace cannot be cast to nokogiri.XmlDocument from NokogiriHelpers.java:653:in `nodeListToRubyArray' from NokogiriHel...
jruby nokogiri.XmlNamespace cannot be cast to nokogiri.XmlDocument
https://api.github.com/repos/sparklemotion/nokogiri/issues/792/comments
4
2012-11-17T14:18:29Z
2013-01-13T03:51:13Z
https://github.com/sparklemotion/nokogiri/issues/792
8,441,247
792
[ "sparklemotion", "nokogiri" ]
when creating a new `Nokogiri::XML` document from a string, that has one or more space characters prior to the xml preamble, on jruby all following child nodes get lost: ``` ruby jruby-1.7.0 :001 > require 'nokogiri' => true jruby-1.7.0 :002 > doc1 = Nokogiri::XML(" <?xml version='1.0' encoding='utf-8' ?><first \>")...
space prior to xml preamble causes nokogiri to lose child nodes, on jruby
https://api.github.com/repos/sparklemotion/nokogiri/issues/790/comments
5
2012-11-15T22:05:43Z
2012-11-25T06:08:59Z
https://github.com/sparklemotion/nokogiri/issues/790
8,403,670
790
[ "sparklemotion", "nokogiri" ]
Running a vanilla install of Ubuntu with ruby 1.9.3-p194 and any nokogiri 1.4.0 to 1.5.5 a crash occurs upon parsing any website. This was tested on both Ubuntu 12.04 and 12.10. The system uses EventMachine (not sure if this is relevant) libxslt1.1 version 1.1.26 libxml2 version 2.7.8 For the full printout see: https...
object allocation during garbage collection phase
https://api.github.com/repos/sparklemotion/nokogiri/issues/789/comments
1
2012-11-14T10:53:04Z
2012-11-14T10:58:10Z
https://github.com/sparklemotion/nokogiri/issues/789
8,350,722
789
[ "sparklemotion", "nokogiri" ]
This code ``` require 'nokogiri' script = <<-eos <script>//<![CDATA[ a = {"input_tag":"<div class=\"field_with_errors\"></div>"}; //]]></script> eos frag = Nokogiri::HTML.fragment(script) puts frag.to_s ``` gives the following garbled output: ``` <script>//&lt;![CDATA[ a = "&lt;div class="field_with_errors"&gt;&lt;...
Wrong CDATA handling with JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/787/comments
1
2012-11-11T04:52:43Z
2013-01-13T03:48:11Z
https://github.com/sparklemotion/nokogiri/issues/787
8,268,554
787
[ "sparklemotion", "nokogiri" ]
With the following simple XML file on JRuby 1.7.0 (1.8 mode) / Nokogiri 1.5.5 the encoding doesn't seem to be getting picked up correctly. ``` <?xml version="1.0" encoding="UTF-8"?> <root> </root> ``` ``` >> Nokogiri.XML(File.open('/Users/chris/scratch/small.xml')).encoding => nil >> Nokogiri.XML(File.open('/Users/ch...
encoding returning nil after Nokogiri.XML when document specifies encoding of UTF-8
https://api.github.com/repos/sparklemotion/nokogiri/issues/786/comments
1
2012-11-10T17:37:34Z
2012-11-30T20:41:38Z
https://github.com/sparklemotion/nokogiri/issues/786
8,263,822
786
[ "sparklemotion", "nokogiri" ]
Decorators work with CRuby Nokogiri::XML::Attr nodes, but are not mixed in under JRuby. This test case passes under CRuby, but fails under JRuby with the error: ``` test_element_decorators(Nokogiri::TestAttributeDecorators): NoMethodError: undefined method `test_method' for #<Nokogiri::XML::Attr:0x434c name="type" va...
JRuby/CRuby incompatibility for attribute decorators
https://api.github.com/repos/sparklemotion/nokogiri/issues/785/comments
1
2012-11-10T00:49:37Z
2014-03-31T14:41:30Z
https://github.com/sparklemotion/nokogiri/issues/785
8,256,850
785
[ "sparklemotion", "nokogiri" ]
To be able to encode valid utf8 text wrappers must be used under jruby at the moment, see below example: **code** ``` ruby # coding: utf-8 require 'nokogiri' puts "Nokogiri #{Nokogiri::VERSION}" puts "No text wrapper:" puts Nokogiri::XML::Builder.new(encoding: "UTF-8") { |xml| xml.test "test ﺵ " }.to_xml puts "With t...
builder requires textwrappers for valid utf8 in jruby, not in mri (1.5.6-rc2)
https://api.github.com/repos/sparklemotion/nokogiri/issues/784/comments
4
2012-11-01T22:51:38Z
2012-12-04T20:12:27Z
https://github.com/sparklemotion/nokogiri/issues/784
8,046,129
784
[ "sparklemotion", "nokogiri" ]
With Nokogiri 1.5.5 on JRuby validating an empty document does not result in an error, while with MRI it does. If you try the below snippet in MRI and JRuby (XML schema taken from #642, perhaps there is some relation between the issues -- atleast for JRuby): ``` ruby require 'nokogiri' xsd_data = <<-XSD <?xml versi...
Empty string does not fail schema validation with JRuby like it does with MRI
https://api.github.com/repos/sparklemotion/nokogiri/issues/783/comments
4
2012-10-31T10:17:36Z
2024-06-24T22:15:30Z
https://github.com/sparklemotion/nokogiri/issues/783
7,994,481
783
[ "sparklemotion", "nokogiri" ]
How do I get `to_xml` to print the same href value as `to_xhtml`? I'm using xml with save_with 0 because xhtml [adds extra formatting](https://github.com/sparklemotion/nokogiri/issues/530) which can't be disabled. ``` ruby # ~*~ encoding: utf-8 ~*~ require 'rubygems' require 'nokogiri' # data = "#한글" data = '<html>...
XML Encoding Issue
https://api.github.com/repos/sparklemotion/nokogiri/issues/782/comments
3
2012-10-28T00:42:13Z
2012-11-30T06:51:26Z
https://github.com/sparklemotion/nokogiri/issues/782
7,915,631
782
[ "sparklemotion", "nokogiri" ]
I'm trying to modify some existing XML that is coming from the iText library, which is in `org.w3c.dom.Document` form. I'm using the [wrap](http://nokogiri.org/Nokogiri/XML/Document.html#method-c-wrap) method to load it (very convenient, thank you!). Unfortunately, I am getting an error (verified on JRuby 1.6.8 --1.9...
Nokogiri::XML::Document#wrap raises undefined method `length' for nil:NilClass when trying to << to a node
https://api.github.com/repos/sparklemotion/nokogiri/issues/781/comments
0
2012-10-25T02:57:21Z
2012-10-25T15:57:40Z
https://github.com/sparklemotion/nokogiri/issues/781
7,847,833
781
[ "sparklemotion", "nokogiri" ]
im working on suse linux. nokogiri is not getting instlled on liux it show below error. gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. ``` /usr/local/rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf....
issues while installing nokogiri
https://api.github.com/repos/sparklemotion/nokogiri/issues/780/comments
1
2012-10-24T09:10:02Z
2012-10-24T10:39:39Z
https://github.com/sparklemotion/nokogiri/issues/780
7,821,782
780
[ "sparklemotion", "nokogiri" ]
Running this code against Nokogiri 1.5.5 (C and Java): ``` ruby require 'nokogiri' doc = Nokogiri::XML::Builder.new do |xml_base| xml_base.send('multistatus', 'xmlns:D' => 'DAV:') do xml_base.parent.namespace = xml_base.parent.namespace_definitions.first xml = xml_base['D'] xml.response do xml.hre...
JRuby/CRuby incompatibility for namespaces
https://api.github.com/repos/sparklemotion/nokogiri/issues/779/comments
2
2012-10-19T21:42:32Z
2021-12-03T18:36:46Z
https://github.com/sparklemotion/nokogiri/issues/779
7,730,317
779
[ "sparklemotion", "nokogiri" ]
Can not parse %0A in attribute value, for example: <a href="javascript:void(window.open('http://v.t.qq.com/share/share.php?title='+encodeURI(document.title)+'&amp;url='+encodeURIComponent(window.location)+'&amp;appkey=a75e1c5904c842b7b3aed10213379cca%0A&amp;site=
Is it possible to handle InvalidByteSequenceError by skip the invalid char
https://api.github.com/repos/sparklemotion/nokogiri/issues/778/comments
5
2012-10-18T16:26:05Z
2021-02-16T17:04:34Z
https://github.com/sparklemotion/nokogiri/issues/778
7,691,737
778
[ "sparklemotion", "nokogiri" ]
README.rdoc has the following to say for C (MRI) development: --- Then install hoe and rake-compiler: ``` $ gem install hoe rake-compiler racc rexical minitest ``` Then run rake: ``` $ rake ``` --- This results in "Don't know how to build task 'bundler:gemfile'". If you replace the above part with ... --- Then...
Error in README
https://api.github.com/repos/sparklemotion/nokogiri/issues/777/comments
0
2012-10-16T20:52:20Z
2012-10-16T22:20:10Z
https://github.com/sparklemotion/nokogiri/issues/777
7,638,717
777
[ "sparklemotion", "nokogiri" ]
The base libxml C library that Nokogiri uses allows SAX Parsers to be run in recovery mode. When the `recovery` value of `xmlParserCtxt` is non-zero, it allows parsing to continue past errors in the XML. Currently there is no way in Nokogiri to enable recovery mode, except through use of a C extension. For example, ...
[Feature] Allow SAX Parser to be run in recovery mode
https://api.github.com/repos/sparklemotion/nokogiri/issues/776/comments
1
2012-10-16T15:59:39Z
2013-11-20T08:04:37Z
https://github.com/sparklemotion/nokogiri/issues/776
7,630,175
776
[ "sparklemotion", "nokogiri" ]
The code: ``` ruby html = "foo" doc = Nokogiri::HTML::DocumentFragment.parse(html) doc.children[0].replace "bar" ``` Gives us error: ``` RuntimeError: error parsing fragment (1) from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:532:in `in_context' from nokogiri-1.5.5/lib/nokogiri/xml/node.rb:532:in `parse' from nok...
Error trying to replace top-level text node in DocumentFragment
https://api.github.com/repos/sparklemotion/nokogiri/issues/775/comments
1
2012-10-09T08:20:21Z
2012-10-21T21:22:15Z
https://github.com/sparklemotion/nokogiri/issues/775
7,441,029
775
[ "sparklemotion", "nokogiri" ]
Hi, I'm trying to build XML '&lt;rpc&gt;&lt;get-chassis-inventory/&gt;&lt;/rpc&gt;' using Nokogiri::XML::Builder, in the following way: builder = Nokogiri::XML::Builder.new do |xml| xml.rpc { xml.get-chassis-inventory } end puts builder.to_xml But, the API seems to be having a problem with '-' in the 'get-chassi...
Nokogiri::XML::Builder doesn't seem to support hyphen'-' in tagnames
https://api.github.com/repos/sparklemotion/nokogiri/issues/774/comments
2
2012-10-03T11:24:01Z
2012-10-04T05:45:20Z
https://github.com/sparklemotion/nokogiri/issues/774
7,318,984
774
[ "sparklemotion", "nokogiri" ]
From http://nokogiri.org/tutorials/ensuring_well_formed_markup.html > Nokogiri corrects bad markup like a boss, similarly to how a browser would before rendering. The link in question is http://www.youtube.com/watch?v=UTiA1DtB1xk which yields: > This video has been removed by the user.
Link to like a boss, video doesn't exist anymore
https://api.github.com/repos/sparklemotion/nokogiri/issues/773/comments
1
2012-10-02T12:55:45Z
2012-10-02T14:28:10Z
https://github.com/sparklemotion/nokogiri/issues/773
7,291,922
773
[ "sparklemotion", "nokogiri" ]
When formatting xml, JRuby Nokogiri has a different behaviour to the C extension: ``` greystones:/tmp $ cat test.rb require 'nokogiri' doc = Nokogiri::XML("<foo>bar</foo>") do |c| c.noblanks end puts doc.to_xml(indent: 2) ``` When using the C extension: ``` greystones:/tmp $ rvm use 1.9.3 Using /home/sebastien/....
[jruby] Different behaviour between jruby nokogiri and C nokogiri when formatting xml
https://api.github.com/repos/sparklemotion/nokogiri/issues/771/comments
4
2012-09-27T19:30:08Z
2012-10-05T14:46:52Z
https://github.com/sparklemotion/nokogiri/issues/771
7,195,111
771
[ "sparklemotion", "nokogiri" ]
From nokogiri-talk thread [here](https://groups.google.com/d/msg/nokogiri-talk/-/oDBvwhy4lgMJ): ``` ruby def test_raw_xml_append_with_namespaces doc = Nokogiri::XML::Builder.new do |xml| xml.root("xmlns:foo" => "x") do xml << '<Element foo:bar="bazz"/>' end end.doc...
[JRuby] namespaced attributes broken when appending raw xml to builder
https://api.github.com/repos/sparklemotion/nokogiri/issues/770/comments
3
2012-09-26T23:29:46Z
2012-10-21T14:43:58Z
https://github.com/sparklemotion/nokogiri/issues/770
7,166,548
770
[ "sparklemotion", "nokogiri" ]
Coming from nokogiri-talk thread [here](https://groups.google.com/d/msg/nokogiri-talk/-/HJBKahT8cIgJ) and the related SO question [here](http://stackoverflow.com/questions/11315362/tweak-ie-conditional-comment-with-nokogiri-without-converting-entities). Some operations, such as creating a script tag within a condition...
Should Node#native_content= be a public method? Discuss.
https://api.github.com/repos/sparklemotion/nokogiri/issues/769/comments
1
2012-09-26T23:05:31Z
2012-09-26T23:06:11Z
https://github.com/sparklemotion/nokogiri/issues/769
7,165,939
769
[ "sparklemotion", "nokogiri" ]
Coming from nokogiri-talk thread [here](https://groups.google.com/d/msg/nokogiri-talk/-/HJBKahT8cIgJ) and the related SO question [here](http://stackoverflow.com/questions/11315362/tweak-ie-conditional-comment-with-nokogiri-without-converting-entities). Some operations, such as creating a script tag within a condition...
Should Node#native_content= be a public method? Discuss.
https://api.github.com/repos/sparklemotion/nokogiri/issues/768/comments
10
2012-09-26T23:05:04Z
2012-10-05T18:12:34Z
https://github.com/sparklemotion/nokogiri/issues/768
7,165,928
768
[ "sparklemotion", "nokogiri" ]
Nokogiri breaks my specs. It seems that it has problems with body tag classes: ``` ruby h = "<a class=\"foo\"></a>" Nokogiri::HTML.fragment(h).css('a.foo').present? # => true # but h = "<body class=\"foo\"></body>" Nokogiri::HTML.fragment(h).css('body.foo').present? # => false ``` Any idea what I'm doing wrong?
Nokogiri has problems with `body` tags
https://api.github.com/repos/sparklemotion/nokogiri/issues/767/comments
2
2012-09-26T12:36:41Z
2012-09-27T11:58:36Z
https://github.com/sparklemotion/nokogiri/issues/767
7,148,541
767
[ "sparklemotion", "nokogiri" ]
Nokogiri breaks my specs. It seems that it has problems with body tag classes: ``` ruby h = "<a class=\"foo\"></a>" Nokogiri::HTML.fragment(h).css('a.foo').present? # => true # but h = "<body class=\"foo\"></body>" Nokogiri::HTML.fragment(h).css('body.foo').present? # => false ``` Any idea what I'm doing wrong?
Nokogiri has problems with `body` tags
https://api.github.com/repos/sparklemotion/nokogiri/issues/766/comments
3
2012-09-26T12:36:40Z
2012-09-27T12:26:34Z
https://github.com/sparklemotion/nokogiri/issues/766
7,148,539
766
[ "sparklemotion", "nokogiri" ]
The docs say ``` A Nokogiri::XML::Node may be treated similarly to a hash with regard to attributes. ``` but one thing I miss from this hash-like behaviour is `#fetch`, which would raise an error if the given key doesn't exist. This can be helpful for avoiding nils being inadvertently passed around, leading to hard-t...
Adding #fetch support to XML::Node ?
https://api.github.com/repos/sparklemotion/nokogiri/issues/765/comments
3
2012-09-21T20:27:36Z
2024-07-02T13:22:26Z
https://github.com/sparklemotion/nokogiri/issues/765
7,052,187
765
[ "sparklemotion", "nokogiri" ]
Discovered while working on #761 (test breakage on the `issue-761` branch). Getting the following exception: ``` # NokogiriHelpers.java:105:in `getCachedNodeOrCreate': java.lang.ClassCastException: nokogiri.XmlNamespace cannot be cast to nokogiri.XmlDocument ``` I've found this behavior is different in the two follow...
XPath queries for namespaces are broken on JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/764/comments
4
2012-09-20T05:51:16Z
2012-09-20T20:00:58Z
https://github.com/sparklemotion/nokogiri/issues/764
7,002,418
764
[ "sparklemotion", "nokogiri" ]
On http://nokogiri.org/Nokogiri/XML/Document.html under the documentation for remove_namespaces!(), there's a link to http://tenderlovemaking.com/2009/04/23/namespaces-in-xml/ which is not found :( That post now appears to live at http://tenderlovemaking.com/2009/04/23/namespaces-in-xml.html. I'll try and send a pull...
Dead link in docs to tenderlove blog post
https://api.github.com/repos/sparklemotion/nokogiri/issues/762/comments
3
2012-09-13T17:24:16Z
2012-09-17T13:52:09Z
https://github.com/sparklemotion/nokogiri/issues/762
6,853,743
762
[ "sparklemotion", "nokogiri" ]
Collect namespaces performance can be improved by a factor of 2 when using: self.root.xpath_fast('//namespace::*').inject({}){|x,y| x['xmlns:' + y.prefix] = y.href if y.prefix != 'xml'; x } cheers, eTM
#collect_namespaces performance
https://api.github.com/repos/sparklemotion/nokogiri/issues/761/comments
3
2012-09-13T00:40:21Z
2012-09-21T04:24:36Z
https://github.com/sparklemotion/nokogiri/issues/761
6,836,042
761
[ "sparklemotion", "nokogiri" ]
about 1/3 of the runtime of #xpath is spent allocating XPathContext. Not sure, but do you think caching the context could lead to bad situations? Caching would improve performance a lot. Example (can be inserted into #xpath) ``` @oldns ||= {} if @oldns == ns @ctx ||= XPathContext.new(self) else @ctx = XPathC...
#xpath performance
https://api.github.com/repos/sparklemotion/nokogiri/issues/760/comments
18
2012-09-12T22:42:15Z
2024-07-02T14:25:30Z
https://github.com/sparklemotion/nokogiri/issues/760
6,834,082
760
[ "sparklemotion", "nokogiri" ]
This one somewhat unexpectedly segfaults: require 'rubygems' require 'nokogiri' doc = Nokogiri.XML('<main/>') node = doc.root.add_child(Nokogiri::XML::Node.new('hallo',doc)) nnode1 = Nokogiri::XML::Node.new('hallo',doc) nnode2 = Nokogiri::XML::Node.new('test',doc) node.replace(nnode1) node.replace(nnode2) --- T...
replace SEGFAULT
https://api.github.com/repos/sparklemotion/nokogiri/issues/759/comments
7
2012-09-12T19:14:29Z
2012-09-12T22:43:42Z
https://github.com/sparklemotion/nokogiri/issues/759
6,828,750
759
[ "sparklemotion", "nokogiri" ]
``` ruby Nokogiri::XML('<!DOCTYPE foo PUBLIC "bar" "qux">') ``` I dumbed down the XML until it was determined that this line was causing the exception. nokogiri-1.5.5 on ruby 1.9.3p194 ``` Exception `ArgumentError' at /usr/local/rvm/gems/ruby-1.9.3-p194/gems/nokogiri-1.5.5/lib/nokogiri/xml/pp/node.rb - string conta...
XML parse raising exception when encountering DOCTYPE
https://api.github.com/repos/sparklemotion/nokogiri/issues/758/comments
2
2012-09-07T19:52:00Z
2016-02-17T05:08:20Z
https://github.com/sparklemotion/nokogiri/issues/758
6,722,757
758
[ "sparklemotion", "nokogiri" ]
``` require 'nokogiri' [ "<?foo bar='baz'?><r/>", " <?foo bar='baz'?><r/>", "<?xml version='1.0'?><r/>", "<?xml version='1.0' encoding='UTF-8'?><r/>", " <?xml version='1.0'?><r/>", " <?xml version='1.0' encoding='UTF-8'?><r/>", ].each do |xml| if pi=Nokogiri.XML(xml).at_xpath('//processing-instruction()')...
XML Document includes XML Declaration as PIs when there is content before it
https://api.github.com/repos/sparklemotion/nokogiri/issues/755/comments
2
2012-08-31T22:42:21Z
2012-09-20T19:16:32Z
https://github.com/sparklemotion/nokogiri/issues/755
6,590,568
755
[ "sparklemotion", "nokogiri" ]
Tapping the dupes repo is simpler and easier than compiling libiconv from source. ``` bash brew tap homebrew/dupes brew install libiconv gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libx...
libiconv with Homebrew 0.9
https://api.github.com/repos/sparklemotion/nokogiri/issues/754/comments
15
2012-08-30T02:07:59Z
2015-07-10T17:19:37Z
https://github.com/sparklemotion/nokogiri/issues/754
6,543,514
754
[ "sparklemotion", "nokogiri" ]
Here is sample code which initializes XML::Document from XML string with namespace and then resents document content with `inner_html=` method: ``` require "rubygems" gem "nokogiri", "1.5.5" require "nokogiri" xml = <<-XML <?xml version="1.0" encoding="UTF-8"?> <office:document-content xmlns:office="urn:oasis:names:t...
XML::Document#inner_html= clears content with namespaces on JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/753/comments
1
2012-08-29T13:08:12Z
2013-11-21T13:54:18Z
https://github.com/sparklemotion/nokogiri/issues/753
6,526,178
753
[ "sparklemotion", "nokogiri" ]
_For more details see http://stackoverflow.com/q/12162548/405017_ Given a file on disk with UTF-16LE encoding and the contents: ``` <?xml version="1.0" encoding="UTF-16" ?> <Foo> <Bar><![CDATA[ (...3906 characters...) ]]></Bar> <Jim>Oh! Hello there.</Jim> </Foo> ``` The output of reading in this file and calling...
Output of #to_xml munged beyond certain file size using UTF-16 declaration
https://api.github.com/repos/sparklemotion/nokogiri/issues/752/comments
5
2012-08-28T15:51:10Z
2022-05-24T15:31:48Z
https://github.com/sparklemotion/nokogiri/issues/752
6,502,586
752
[ "sparklemotion", "nokogiri" ]
If you copy the exact sample from the bottom of http://nokogiri.org/Nokogiri/XML/Builder.html the output does not include the doctype. nokogiri-1.5.5-java ``` ruby puts builder.to_xml ``` ``` xml <?xml version="1.0"?> <root> <foo/> </root> ```
to_xml doesn't return DTD set, JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/751/comments
0
2012-08-21T22:16:07Z
2012-12-05T09:13:19Z
https://github.com/sparklemotion/nokogiri/issues/751
6,364,414
751
[ "sparklemotion", "nokogiri" ]
While using nokogiri 1.5.5 I noticed strange behavior - & and &amp; symbols are stripped from resulting Nokogiri options. irb examples: ``` 1.9.3-p125-falcon :038 > puts Nokogiri::XML::Document.parse("<?xml version=\"1.0\" encoding=\"utf-8\"?> 1.9.3-p125-falcon :039"> <key> 1.9.3-p125-falcon :040"> text text &a...
Ampersand disappear if using UTF-16
https://api.github.com/repos/sparklemotion/nokogiri/issues/750/comments
1
2012-08-17T15:04:17Z
2016-02-17T04:56:35Z
https://github.com/sparklemotion/nokogiri/issues/750
6,291,375
750
[ "sparklemotion", "nokogiri" ]
Hi, since posting it on nokogiri-talk did not get a solution: I just installed the nokogiri gem and tried to use it, but get the error message LoadError: cannot load such file -- nokogiri ruby obviously does not find any nokogiri.rb, since it is not at the place expected from gems. I googled that problem and foun...
LoadError: cannot load such file -- nokogiri
https://api.github.com/repos/sparklemotion/nokogiri/issues/749/comments
2
2012-08-16T10:35:09Z
2012-10-01T03:21:51Z
https://github.com/sparklemotion/nokogiri/issues/749
6,261,436
749
[ "sparklemotion", "nokogiri" ]
Not really sure what's happening here, but I'm attempting to load the following file into an XML document: http://wpcandy.s3.amazonaws.com/resources/postsxml.zip ``` xml = Nokogiri::XML(File.open(FILENAME)) ``` Under JRuby, it doesn't appear that the file is fully parsed... CRuby: ``` xml.xpath("//item").size # =>...
XML file not fully parsed with JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/748/comments
1
2012-08-15T17:45:04Z
2012-09-20T19:12:51Z
https://github.com/sparklemotion/nokogiri/issues/748
6,246,075
748
[ "sparklemotion", "nokogiri" ]
Nokogiri 1.5.5 JRuby 1.6.7.2 There seems to be an issue on JRuby with attribute values beginning with something that looks like a protocol (namely, characters, and then a colon). This causes the document to be parsed incorrectly. I created a small script to test this: ``` ruby require 'nokogiri' test_string = <<-E...
DocumentFragment.parse of certain attribute values mangles document on JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/747/comments
2
2012-08-14T14:25:56Z
2013-11-21T14:11:09Z
https://github.com/sparklemotion/nokogiri/issues/747
6,217,331
747
[ "sparklemotion", "nokogiri" ]
im using nokogiri in rails app. i wanna do parse current page. so i search many article but nobody say answer. only parse open(url) or open(file).. anybody know how to parse current page?
How can i parse current page??
https://api.github.com/repos/sparklemotion/nokogiri/issues/746/comments
3
2012-08-12T19:08:06Z
2017-02-16T21:58:12Z
https://github.com/sparklemotion/nokogiri/issues/746
6,179,201
746
[ "sparklemotion", "nokogiri" ]
Don't know if nokogiri is affected. Please see here: https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00004.html https://mail.gnome.org/archives/xml/2012-August/msg00005.html
Incompatible change in libxml2 regarding xmlParserInputBuffer and xmlOutputBuffer
https://api.github.com/repos/sparklemotion/nokogiri/issues/744/comments
0
2012-08-10T08:34:55Z
2019-01-05T08:06:00Z
https://github.com/sparklemotion/nokogiri/issues/744
6,146,015
744
[ "sparklemotion", "nokogiri" ]
I'm attempting to build on Raspian (RaspberryPi) Full machine details: ``` # uname -a Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux ``` And I am receiving this error when building with gem: ``` xml_xpath_context.c: In function ‘xpath_generic_exception_handler’: xml_xpath_contex...
Build Error "format not a string literal and no format arguments"
https://api.github.com/repos/sparklemotion/nokogiri/issues/743/comments
4
2012-08-07T22:29:10Z
2013-10-12T10:23:52Z
https://github.com/sparklemotion/nokogiri/issues/743
6,090,829
743
[ "sparklemotion", "nokogiri" ]
I've installed Nokogiri, and everything works fine in irb, however, in the Rails console (or when running any Rails command) I get: ``` WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 ``` nokogiri -v shows: ``` # Nokogiri (1.5.5) --- warnings: [] nokogiri: 1.5.5...
Nokogiri and libxml not playing with Rails on Mountain Lion?
https://api.github.com/repos/sparklemotion/nokogiri/issues/742/comments
20
2012-08-03T18:39:17Z
2014-06-17T01:23:29Z
https://github.com/sparklemotion/nokogiri/issues/742
6,020,869
742
[ "sparklemotion", "nokogiri" ]
For some reason the xpath() method is a _lot_ slower in nokogiri-java 1.5.5 than the MRI version. I have code that processes around 1.5 MB of XML, using a lot of nested xpath loops. It takes only 1.7 seconds in MRI but around 150 seconds in JRuby 1.6.7.2 on Java 7. Running with VisualVM shows that almost all time is s...
xpath() around 10x slower in JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/741/comments
28
2012-08-01T15:43:38Z
2017-01-27T22:23:20Z
https://github.com/sparklemotion/nokogiri/issues/741
5,971,082
741
[ "sparklemotion", "nokogiri" ]
https://groups.google.com/forum/?fromgroups#!topic/nokogiri-talk/xKkfrdcf1oU libxml2 defines XML_MAX_TEXT_LENGTH as ~10 MB. Attempting to parse an XML file with a text node larger than 10MB causes odd behavior: - on Linux / libxml2 2.7.6, the node is truncated to fit in XML_MAX_TEXT_LENGTH and "error: xmlSAX2Character...
Parsing text nodes bigger than libxml2's XML_MAX_TEXT_LENGTH cause truncation/crashes
https://api.github.com/repos/sparklemotion/nokogiri/issues/740/comments
5
2012-08-01T15:03:35Z
2019-01-05T01:22:52Z
https://github.com/sparklemotion/nokogiri/issues/740
5,970,064
740
[ "sparklemotion", "nokogiri" ]
:has selector doesn't work (but I found tests in code for this?): Example queries: ``` doc.css('li:has(span.string:not(:empty))>h1>a') doc.css('li:has(span)>h1>a') doc.css('li:has(span)') ``` I temporarily solved this with custom has pseudo class: ``` class MyCustomSelectors def custom_has node_set, selector ...
:has pseudo class isn't working
https://api.github.com/repos/sparklemotion/nokogiri/issues/739/comments
1
2012-08-01T14:07:28Z
2012-08-02T01:47:51Z
https://github.com/sparklemotion/nokogiri/issues/739
5,968,634
739
[ "sparklemotion", "nokogiri" ]
With ruby-1.9.3p194/nokogiri-1.5.5 initial whitespace seems to be tolerated: ``` > ruby -rnokogiri -e 'puts Nokogiri::XML(%{ <?xml version="1.0"?><x/>}) <?xml version="1.0"?> <?xml version="1.0"?> <x/> ``` Whereas with jruby-1.6.7.2/nokogiri-1.5.5 initial whitespace is disruptive: ``` > jruby -rnokogiri -e 'puts Nok...
Initial whitespace handled differently in mri/jruby
https://api.github.com/repos/sparklemotion/nokogiri/issues/738/comments
2
2012-07-31T13:45:19Z
2012-12-05T09:25:31Z
https://github.com/sparklemotion/nokogiri/issues/738
5,943,467
738
[ "sparklemotion", "nokogiri" ]
Hello! I've be using nokogiri for a while, and I wonder, why Nokogiri::XML::Document for example, doesn't have to_hash method. I think it can be usefull. Or it already exists?
Document to_hash
https://api.github.com/repos/sparklemotion/nokogiri/issues/736/comments
2
2012-07-27T14:46:45Z
2012-08-14T14:27:03Z
https://github.com/sparklemotion/nokogiri/issues/736
5,877,882
736
[ "sparklemotion", "nokogiri" ]
http://nokogiri.org/tutorials/searching_a_xml_html_document.html In the "But I’m Lazy and Don’t Want to Deal With Namespaces!" section the method to remove namespaces is referred to as remove_namespaces, but it is actually remove_namespaces!
Documentation at nokogiri.org has typo regarding remove_namespaces! method
https://api.github.com/repos/sparklemotion/nokogiri/issues/734/comments
0
2012-07-25T20:59:50Z
2012-07-25T21:03:53Z
https://github.com/sparklemotion/nokogiri/issues/734
5,840,450
734
[ "sparklemotion", "nokogiri" ]
I am reading in an XML file and find that &quot; is being stripped. Reading the file in: ``` doc = File.open(file_path) do |file| Nokogiri::XML( file ) end ``` and then outputting: ``` puts doc ``` shows that the quotes are gone. There is an XML tag that contains some (clean) html: <tag> <p>\&quot;This is the...
Disappearing &quot; in XML
https://api.github.com/repos/sparklemotion/nokogiri/issues/732/comments
4
2012-07-20T04:34:39Z
2013-06-29T01:43:50Z
https://github.com/sparklemotion/nokogiri/issues/732
5,730,149
732
[ "sparklemotion", "nokogiri" ]
Is RelaxNG validation currently supported by the JRuby version? I assume it is, because I noted that jing.jar is packaged with nokogiri, however, I cannot load a schema: ``` > schema = Nokogiri::XML::RelaxNG(File.open('vendor/schema/csl.rng')) Java::JavaLang::NoSuchMethodError: com.thaiopensource.relaxng.parse.sax.SAX...
RelaxNG Validation in JRuby Version
https://api.github.com/repos/sparklemotion/nokogiri/issues/727/comments
3
2012-07-12T11:55:08Z
2016-02-17T05:11:09Z
https://github.com/sparklemotion/nokogiri/issues/727
5,569,930
727
[ "sparklemotion", "nokogiri" ]
C++ style comment at `xml_document.c:159:37` causes `gem update` failure. <pre><code> [jon@archee ~]$ uname -a Linux archee 3.4.4-2-ARCH #1 SMP PREEMPT Sun Jun 24 17:28:37 UTC 2012 i686 GNU/Linux [jon@archee ~]$ pacman -Q gcc gcc 4.7.1-4 [jon@archee ~]$ pacman -Q libxml2 libxml2 2.7.8-2 [jon@archee ~]$ gem update n...
nokogiri 1.5.5 build fail on Arch 3.4.4/gcc 4.7.1
https://api.github.com/repos/sparklemotion/nokogiri/issues/724/comments
1
2012-07-05T18:44:53Z
2018-02-20T00:12:58Z
https://github.com/sparklemotion/nokogiri/issues/724
5,450,395
724
[ "sparklemotion", "nokogiri" ]
Every time I report a nokogiri jruby bug, I have to include a test case outside of the nokogiri test suite because I cannot get it to run properly: ``` {11:51}[jruby-1.6.7.2]~/code/nokogiri@master✗✗✗ ben% be rake test install -c tmp/java/nokogiri/nokogiri.jar lib/nokogiri/nokogiri.jar /Users/ben/Developer/.rvm/rubies/...
Test suite does not run correctly on JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/722/comments
5
2012-07-04T10:55:39Z
2012-07-04T11:19:23Z
https://github.com/sparklemotion/nokogiri/issues/722
5,425,906
722
[ "sparklemotion", "nokogiri" ]
I'm getting the following test failures with jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-17 fffffff) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java] for nokogiri 1.5.5: ``` 1) Failure: test_java_exception_handling(Nokogiri::XSLT::TestExceptionHandling) [./test/xslt/test_exception_handling.rb:31]: The exception m...
nokogiri 1.5.5 fails tests with jruby 1.6.7.2
https://api.github.com/repos/sparklemotion/nokogiri/issues/721/comments
10
2012-07-03T18:10:08Z
2013-01-18T16:02:14Z
https://github.com/sparklemotion/nokogiri/issues/721
5,413,037
721
[ "sparklemotion", "nokogiri" ]
The homebrew install instructions didnt work for me on OSX Lion. The following changes were necessary (from https://groups.google.com/forum/?fromgroups#!topic/nokogiri-talk/g82-Im9p5oA): ./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.8 gem install nokogiri -- ...
Homebrew installation instructions dont work on OSX Lion - fix included
https://api.github.com/repos/sparklemotion/nokogiri/issues/720/comments
3
2012-07-03T16:13:31Z
2013-05-20T21:45:02Z
https://github.com/sparklemotion/nokogiri/issues/720
5,410,582
720
[ "sparklemotion", "nokogiri" ]
I wrote creating newline node using EntityReference ``` ruby require 'rubygems' require 'nokogiri' xml = <<EOF <?xml version="1.0" ?> <item></item> EOF doc = Nokogiri::XML xml lf_node = Nokogiri::XML::EntityReference.new(doc, "#xa") doc.xpath('/item').first.add_child(lf_node) puts doc.to_xml ``` Nokogiri 1.4.7 retu...
Creating newline node on JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/719/comments
1
2012-06-27T03:49:41Z
2012-07-07T11:45:59Z
https://github.com/sparklemotion/nokogiri/issues/719
5,288,811
719
[ "sparklemotion", "nokogiri" ]
I'm getting a seg fault when parsing HTML with the Nokogiri::HTML() method. Dump included below: ``` /Users/danbarrett/.rvm/gems/ruby-1.9.2-p318/gems/nokogiri-1.5.5/lib/nokogiri/html/document.rb:124: [BUG] Segmentation fault ruby 1.9.2p318 (2012-02-14 revision 34678) [x86_64-darwin11.2.0] -- control frame ---------- ...
Seg Fault in v1.5.5
https://api.github.com/repos/sparklemotion/nokogiri/issues/718/comments
4
2012-06-27T02:28:24Z
2012-06-28T14:28:23Z
https://github.com/sparklemotion/nokogiri/issues/718
5,288,156
718
[ "sparklemotion", "nokogiri" ]
Hi! I noticed that files contained in test/files/test_document_url/ are missing from the 1.5.5 gem. As a consequence, a certain number of tests are failing. Cédric
test/files/test_document_url/ missing from 1.5.5 gem
https://api.github.com/repos/sparklemotion/nokogiri/issues/717/comments
1
2012-06-26T11:41:21Z
2012-07-04T08:46:50Z
https://github.com/sparklemotion/nokogiri/issues/717
5,270,374
717
[ "sparklemotion", "nokogiri" ]
My expectation is that Nokogiri::XML::SAX::Parser is supposed to have a small memory footprint relative to the input. I'm attempting to process xml files about 1gb in size. The process only completes is when the max heap is roughly the same size as the input file. Environment: Windows 7 Java 1.7 JRuby 1.6.7.2 Nokog...
Nokogiri::XML::SAX::Parser memory leak (JRuby)
https://api.github.com/repos/sparklemotion/nokogiri/issues/716/comments
4
2012-06-26T05:14:16Z
2013-11-21T14:09:43Z
https://github.com/sparklemotion/nokogiri/issues/716
5,265,307
716
[ "sparklemotion", "nokogiri" ]
# Affected ruby versions - JRuby # Affected nokogiri versions - 1.5.x (including 1.5.5) # Test case ``` ruby require 'nokogiri' Foo = Class.new Nokogiri::XML::Node shared_examples_for "#<<" do let(:doc) { Nokogiri::XML::Document.new } subject { described_class.new 'foo', doc } it "should maintain element nam...
JRuby doesn't coerce namespaces out of strings
https://api.github.com/repos/sparklemotion/nokogiri/issues/715/comments
20
2012-06-25T17:53:31Z
2012-07-11T18:06:12Z
https://github.com/sparklemotion/nokogiri/issues/715
5,255,158
715
[ "sparklemotion", "nokogiri" ]
I'm not 100% sure that it's Nokogiri to blame, and I was unable to reproduce this "in vitro". The crash happens in heavily threaded environment (sidekiq), and this is the C-level dump: <pre> /home/ubuntu/.rvm/rubies/ruby-1.9.3-p194/lib/libruby.so.1.9(+0x17c1e5) [0x7f181d6a51e5] vm_dump.c:796 /home/ubuntu/.rvm/rubies/r...
Possible crash in nokogiri
https://api.github.com/repos/sparklemotion/nokogiri/issues/714/comments
4
2012-06-25T13:36:54Z
2016-02-17T04:52:43Z
https://github.com/sparklemotion/nokogiri/issues/714
5,248,740
714
[ "sparklemotion", "nokogiri" ]
Hey guys, I discovered this issue while trying to use the readability gem. Some googling lead to http://nokogiri.org/tutorials/installing_nokogiri.html#homebrew_09, but this did not work for me. I also tried these: https://gist.github.com/2969692 http://dimaspriyanto.com/2011/12/31/nokogiri-segfault-on-darwin/ htt...
Can't get nokogiri to work with 1.9.3 on OS X Lion
https://api.github.com/repos/sparklemotion/nokogiri/issues/713/comments
8
2012-06-25T11:30:16Z
2013-09-27T19:44:41Z
https://github.com/sparklemotion/nokogiri/issues/713
5,246,761
713
[ "sparklemotion", "nokogiri" ]
# Affected ruby versions - JRuby - Ruby 1.9.3 (probably more) # Affected nokogiri versions - 1.5.x (including 1.5.5) # Test case ``` ruby require 'nokogiri' Foo = Class.new Nokogiri::XML::Node shared_examples_for 'prefixed attributes' do let(:doc) { Nokogiri::XML::Document.new } subject { described_class.new 'f...
Prefixed element inconsistency between CRuby and JRuby
https://api.github.com/repos/sparklemotion/nokogiri/issues/712/comments
4
2012-06-25T10:14:57Z
2012-10-22T03:17:24Z
https://github.com/sparklemotion/nokogiri/issues/712
5,245,705
712
[ "sparklemotion", "nokogiri" ]
doc = Nokogiri::HTML("") doc.css("img[width=200]") Gives Nokogiri::CSS::SyntaxError: unexpected '200' after 'equal'
Integer attribute value gets SyntaxError
https://api.github.com/repos/sparklemotion/nokogiri/issues/711/comments
4
2012-06-23T05:50:39Z
2018-02-03T23:09:08Z
https://github.com/sparklemotion/nokogiri/issues/711
5,227,665
711
[ "sparklemotion", "nokogiri" ]
I was trying to narrow down memory issues in my application and I have narrowed it down to this call. Now, if I create a test app that just calls this in a loop with some data, the memory will keep growing and growing in activity monitor. Here is my code below. Also, just FYI... it is not httparty as I tried to put ...
Memory leak - Nokogiri::HTML
https://api.github.com/repos/sparklemotion/nokogiri/issues/708/comments
2
2012-06-20T17:32:59Z
2013-11-21T14:03:33Z
https://github.com/sparklemotion/nokogiri/issues/708
5,176,092
708
[ "sparklemotion", "nokogiri" ]
Hi, I’m the maintainer of cssselect, which does in Python pretty much the same as Nokogiri for CSS selectors: translate them to XPath. It looks like the SimonSapin/cssselect#12 bug also applies to Nokogiri. Namely, the XPath translation of `:nth-child()` and similar pseudo-classes is wrong when used after the `+` or `...
CSS `foo~:nth-child(2)` gives incorrect XPath
https://api.github.com/repos/sparklemotion/nokogiri/issues/707/comments
3
2012-06-18T09:48:19Z
2024-07-03T19:05:32Z
https://github.com/sparklemotion/nokogiri/issues/707
5,120,309
707
[ "sparklemotion", "nokogiri" ]
Hello, I'm using nokogiri in my tests to validate generated XML documents with a schema. My schems imports namespaces available online, like [dublincore's dcterms](http://dublincore.org/schemas/xmls/qdc/dcterms.xsd) for example. As it is intended to do, validating the document makes calls to these namespaces urls. The...
Let us mock HTTP Requests in XSD validation
https://api.github.com/repos/sparklemotion/nokogiri/issues/706/comments
2
2012-06-18T09:06:31Z
2018-06-02T19:10:26Z
https://github.com/sparklemotion/nokogiri/issues/706
5,119,710
706
[ "sparklemotion", "nokogiri" ]
@yokolet I created this ticket to synchronize the work on fixing the tests under 1.9 mode. I fixed most of them except for the ones that have to do with encoding on the 'fix_tests_19_mode' branch. As of now the most commit is rev f156bd14dcdb0754c91a983963fb1959013ba624. Also I was trying to cleanup the SAX push par...
Fix broken tests under jruby 1.9 mode
https://api.github.com/repos/sparklemotion/nokogiri/issues/705/comments
8
2012-06-17T21:01:51Z
2013-01-12T21:45:04Z
https://github.com/sparklemotion/nokogiri/issues/705
5,114,417
705
[ "sparklemotion", "nokogiri" ]
This is just a reminder for myself of what needs to be done regarding entity resolving. This started as an investigation for issues #674 and #703. 1. The Dom Parser handles DTD validation and entity resolving in both the C and Java version (this is still on a branch 'fix_entity_resolving' rev 7272ba1846abe0a94413329ff1...
Entity resolving in Java should be consistent with C-Nokogiri
https://api.github.com/repos/sparklemotion/nokogiri/issues/704/comments
13
2012-06-17T20:53:04Z
2012-07-08T16:41:44Z
https://github.com/sparklemotion/nokogiri/issues/704
5,114,367
704
[ "sparklemotion", "nokogiri" ]
This seems related to the closed out #674. If I use a script similar to what @flavorjones provided, but instead of providing a valid URL, I use one that doesn't resolve with DNS, I get an error (and an unhelpful message): <pre> #! /usr/bin/env ruby require 'nokogiri' require 'open-uri' require 'yaml' puts ...
JRuby unable to create HTML document if URL unresponsive
https://api.github.com/repos/sparklemotion/nokogiri/issues/703/comments
10
2012-06-15T14:06:40Z
2021-11-30T17:47:34Z
https://github.com/sparklemotion/nokogiri/issues/703
5,092,807
703
[ "sparklemotion", "nokogiri" ]
# Affected ruby versions - JRuby # Affected nokogiri versions - 1.5.x (including 1.5.5.rc2) # Test case ``` ruby require 'nokogiri' Foo = Class.new Nokogiri::XML::Node shared_examples_for '#xpath' do let(:doc) { Nokogiri::XML::Document.new } subject { described_class.new 'foo', doc } context 'looking for an ...
Yet more JRuby issues when subclassing
https://api.github.com/repos/sparklemotion/nokogiri/issues/702/comments
7
2012-06-15T12:17:24Z
2012-06-25T08:34:01Z
https://github.com/sparklemotion/nokogiri/issues/702
5,091,112
702
[ "sparklemotion", "nokogiri" ]
This is best explained in code: ``` 1.9.3-p125 :231 > Nokogiri.HTML("<p><a></a>test</p>").xpath('//*[contains(text(),"test")]') => [#<Nokogiri::XML::Element:0x2fc76f8 name="p" children=[#<Nokogiri::XML::Element:0x2fc74a0 name="a">, #<Nokogiri::XML::Text:0x2fc7248 "test">]>] 1.9.3-p125 :232 > Nokogiri.HTML("<p>x<a></a...
Nokogiri seems to only search first text node
https://api.github.com/repos/sparklemotion/nokogiri/issues/700/comments
2
2012-06-12T18:07:03Z
2012-06-12T23:48:08Z
https://github.com/sparklemotion/nokogiri/issues/700
5,029,763
700
[ "sparklemotion", "nokogiri" ]
test below. With ruby 1.8.7, prints "", "", "x". With jruby, I get a native java exception stacktrace. ``` require "nokogiri" p Nokogiri::HTML.parse(nil).text p Nokogiri::HTML.parse("").text p Nokogiri::HTML.parse("x").text ```
jruby crashes with empty html documents
https://api.github.com/repos/sparklemotion/nokogiri/issues/699/comments
2
2012-06-12T08:25:49Z
2012-06-12T14:30:56Z
https://github.com/sparklemotion/nokogiri/issues/699
5,019,536
699
[ "sparklemotion", "nokogiri" ]
When i use nokogiri parser a html. It have below error It happened when i use Nokogiri::HTML() method. <pre> /home/grant/.rvm/gems/ruby-1.9.2-p318/gems/nokogiri-1.5.3/lib/nokogiri/html/document.rb:120:in `parse': undefined method `empty?' for true:TrueClass (NoMethodError) from /home/grant/.rvm/gems/ruby-1.9.2-p3...
encount undefined method `empty?' error
https://api.github.com/repos/sparklemotion/nokogiri/issues/696/comments
1
2012-06-10T14:19:29Z
2012-06-10T17:28:51Z
https://github.com/sparklemotion/nokogiri/issues/696
4,991,657
696
[ "sparklemotion", "nokogiri" ]
# Affected ruby versions - JRuby # Affected nokogiri versions - 1.5.3 (prior 1.5.x releases break on nil prefixes) # Test case ``` ruby require 'nokogiri' Foo = Class.new Nokogiri::XML::Node shared_examples_for 'to_xml' do let(:doc) { Nokogiri::XML::Document.new } subject { described_class.new 'foo', doc } c...
JRuby renders nodes without their namespace when subclassing Node
https://api.github.com/repos/sparklemotion/nokogiri/issues/695/comments
6
2012-06-08T15:12:32Z
2012-06-14T16:36:32Z
https://github.com/sparklemotion/nokogiri/issues/695
4,972,535
695
[ "sparklemotion", "nokogiri" ]
C:>gem install nokogiri -v=1.5.2 Fetching: nokogiri-1.5.2-java.gem (100%) Invalid gemspec in [C:/jruby/lib/ruby/gems/shared/specifications/nokogiri-1.5.2- java.gemspec]: invalid byte sequence in UTF-8 Successfully installed nokogiri-1.5.2-java 1 gem installed The same issue is there for version 1.5.3 as well. Please ...
Invalid gemspec - Nokogiri
https://api.github.com/repos/sparklemotion/nokogiri/issues/694/comments
1
2012-06-08T12:13:13Z
2012-06-08T13:22:04Z
https://github.com/sparklemotion/nokogiri/issues/694
4,969,122
694