Every repository with this icon (
Every repository with this icon (
| Description: | Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support. edit |
-
Comments
-
0 comments Created 7 days ago by yobProvide DOM/SAX examples of loading a DTD so named entities can be resolved1.4.1xCurrently if I attempt to parse a document that has named entities in it I get an exception.
The files I'm trying to parse conform to a DTD that defines the valid entities, word on the street is that by loading the DTD i may be able to avoid the exception. See http://groups.google.com/group/nokogiri-talk/browse_thread/thread/8225dfb0ffbe0098
Comments
-
I added the xmldecl method to the SAX callbacks, and that broke the SOAP adapter. That broken this dudes code:
http://groups.google.com/group/nokogiri-talk/msg/dca72612114cfcc5
We need to figure out a way to get the adapter under test without loading in soap4r
Comments
flavorjones
Tue Nov 17 23:38:16 -0800 2009
| link
I've pushed a branch named 'soap4r-bug' that reproduces this problem in the Nokogiri test suite.
-
0 comments Created 5 days ago by tenderloveXML::Namespace#inspect may be broken1.4.1xI think the inspect method is broken. Broken or not, we need to figure out this crash:
http://groups.google.com/group/nokogiri-talk/msg/6f8e4ac93fbebf39
Comments
-
0 comments Created 3 months ago by tenderlove1.4.1xFigure out how to attach a DTD to a documenttenderlovexI would like to be able to attach a DTD to an HTML document so that the id() xpath function works.
Comments
-
I don't know if this really a bug or if I'm being really stupid, but here goes:
So, when you have a double quote character inside your attribute value, nokogiri does this
attribute='a string with a double " quote'
Unfortunately, this is making the xerces java parser (or whatever parser Openfire uses) throw a hissy fit. While I understand this may be a xerces bug (OWPOU), not a nokogiri one, it would still be nice if we could have the option of using
attribute="a string with a double " quote"
(I tried using send(:native_content=, "...") but that has the same result.
Comments
tenderlove
Mon Nov 09 15:41:15 -0800 2009
| link
What version of libxml2 are you using? Past the contents of this command, if you can:
$ nokogiri -vAlso, if you could post the code to reproduce this, that would be great. So far, libxml2 is behaving how you want it to:
d = Nokogiri::XML('<root />') d.root['foo'] = 'hello " world' puts d.to_xml # => '<root foo="hello " world"/>' -
We might want to write up some docs that present functionality broken down the same way that jQuery's docs do it (which I find totally useful and obvious):
- core (parsing)
- selectors
- attributes
- traversing
- manipulation
Comments
tenderlove
Fri May 15 09:39:55 -0700 2009
| link
I like this. Should we do it in the wiki? Or as RDoc? Or both?
I'd say both of them... with the hpricot api seemingly unavailable following why's disappearance, better / more complete documentation for nokogiri would be a great help.
tenderlove
Sat Nov 07 12:23:39 -0800 2009
| link
We're doing our best. All methods are currently documented. Unfortunately "better" is a very subjective word. That being said, patches are greatly appreciated!
We've launched a new website: http://nokogiri.org
And we're working on tutorials. :-(
-
3 comments Created 6 months ago by flavorjonesffixFFI ruby object caching should be rewritten to not use id2refmdalessioxid2ref is slow and may be turned off by default in JRuby 1.4.
discussed with wmeissner, and the probable path is to build an API into FFI that is an hash table containing address => weakref(ruby_object).
Comments
nicksieger
Mon Nov 16 13:32:31 -0800 2009
| link
FYI, id2ref (and objectspace) is turned off by default in JRuby. We made a conscious decision to do this because it's expensive and not feasible to manage all live objects with JRuby.
nicksieger
Mon Nov 16 13:59:28 -0800 2009
| link
Also: tools to help implement the caching in Java/JRuby:
http://java.sun.com/javase/6/docs/api/java/lang/ref/WeakReference.html
http://java.sun.com/javase/6/docs/api/java/util/WeakHashMap.htmlNote the last item may not be exactly what is needed, it's a map w/ weak keys, not a map that weakly references its values.
flavorjones
Mon Nov 16 14:07:16 -0800 2009
| link
Nick, thanks for the pointers (no pun intended).
-
1 comment Created 6 months ago by flavorjonesffixFFI: support varargs in error/exception callbacksmdalessioxwe should open JIRA tickets for vararg support in FFI callbacks
then we should format the libxml error messages properly in the error/exception callbacks
Comments
flavorjones
Sun Jun 21 19:38:17 -0700 2009
| link
@tmm1 poked me about this. I'll open a ticket for it tonight.
-
0 comments Created 5 months ago by flavorjonesffixuse get_array_of_pointer for performance improvementmdalessioxshould be in JRuby 1.3 final, not sure about MRI-FFI right now. in particular, this can be used in SAX parser implementation.
Comments
-
0 comments Created 3 months ago by flavorjonesffixFFI needs unlinkedNodes to be optimizedmdalessioxExtension commit f34f3bd needs to be ported.
Comments
-
The Tutorials link is broken on Firefox (including when JavaScript is enabled)
0 comments Created 5 days ago by shlomifHi all!
The tutorials link on the Nokogiri site is broken on Firefox 3.5.5 on Mandriva Linux Cooker (standard Mandriva package), even when JavaScript is enabled (and it should work even when it isn't.).
I don't see anything in the error console.
Please fix it.
Regards,
-- Shlomi Fish
Comments
-
Extending nokogiri with jQuery selectors?
0 comments Created 1 day ago by jeroenvandijkI'm using nokogiri through webrat to assert whether elements exist. The set of css3 selectors are limited if you compare them with the set selectors of jquery (.e.g. :has, :contains). So I have the following questions:
- is there a plan to make nokogiri compatible with jquery?
- if not, would it be hard to fork nokogiri and add the selectors? Any hints where to start?
Here is an example that illustrates the problem I have http://groups.google.nl/group/formtastic/msg/2601ac08d8c48a96
Comments
- 1.2.3▾
- 1.3.0▾
- 1.3.1▾
- 1.3.2▾
- 1.3.3▾
- 1.4.0▾
- 1.4.1▾
- REE▾
- ffi▾
- jruby▾
- libxml2▾
- mdalessio▾
- namespace-confusion▾
- tenderlove▾
- Apply to Selection
-
Change Color…
Preview:preview
- Rename…
- Delete












Commit bfa172d allows to set the RECOVER option for PushParser. This resolves the issue.