forked from sparklemotion/nokogiri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix support for element_children in document fragments.
libxml2 doesn't support finding children in document fragments, but I don't think there's a good reason for this. Bug and proposed patch for libxml2 here: https://bugzilla.gnome.org/show_bug.cgi?id=733900
- Loading branch information
Kyle VanderBeek
committed
Jul 29, 2014
1 parent
983ff1f
commit 1793a5a
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/tree.c.orig 2012-05-14 19:39:20.000000000 -0700 | ||
+++ b/tree.c 2014-07-29 13:01:58.000000000 -0700 | ||
@@ -3438,6 +3438,7 @@ | ||
case XML_ELEMENT_NODE: | ||
case XML_ENTITY_NODE: | ||
case XML_DOCUMENT_NODE: | ||
+ case XML_DOCUMENT_FRAG_NODE: | ||
case XML_HTML_DOCUMENT_NODE: | ||
cur = parent->children; | ||
break; | ||
@@ -3473,6 +3474,7 @@ | ||
case XML_ELEMENT_NODE: | ||
case XML_ENTITY_NODE: | ||
case XML_DOCUMENT_NODE: | ||
+ case XML_DOCUMENT_FRAG_NODE: | ||
case XML_HTML_DOCUMENT_NODE: | ||
cur = parent->children; | ||
break; | ||
@@ -3508,6 +3510,7 @@ | ||
case XML_ELEMENT_NODE: | ||
case XML_ENTITY_NODE: | ||
case XML_DOCUMENT_NODE: | ||
+ case XML_DOCUMENT_FRAG_NODE: | ||
case XML_HTML_DOCUMENT_NODE: | ||
cur = parent->last; | ||
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters