Commit 1e53f1be authored by cevans@chromium.org's avatar cevans@chromium.org

Fix namespace vs. node type issue in a generic way.

BUG=138673
Review URL: https://chromiumcodereview.appspot.com/10824157

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149930 0039d316-1c4b-4281-b951-d872f2087c98
parent c977df39
...@@ -28,6 +28,8 @@ Modifications: ...@@ -28,6 +28,8 @@ Modifications:
- Add a fix for proper escaping of xpointer expressions, commit upstream is pending. - Add a fix for proper escaping of xpointer expressions, commit upstream is pending.
- Add helper classes in chromium/libxml_utils.cc and chromium/include/libxml/libxml_utils.h. - Add helper classes in chromium/libxml_utils.cc and chromium/include/libxml/libxml_utils.h.
- Add a tweak to limit problems caused by excessive strings and buffers. - Add a tweak to limit problems caused by excessive strings and buffers.
- Change the xmlNs struct a little bit, so it looks like it has no children
if treated as a generic xmlNode object.
To import a new snapshot of libxml: To import a new snapshot of libxml:
......
...@@ -351,6 +351,7 @@ struct _xmlNs { ...@@ -351,6 +351,7 @@ struct _xmlNs {
struct _xmlNs *next; /* next Ns link for this node */ struct _xmlNs *next; /* next Ns link for this node */
xmlNsType type; /* global or local */ xmlNsType type; /* global or local */
const xmlChar *href; /* URL for the namespace */ const xmlChar *href; /* URL for the namespace */
const char* dummy_children; /* lines up with node->children */
const xmlChar *prefix; /* prefix for the namespace */ const xmlChar *prefix; /* prefix for the namespace */
void *_private; /* application data */ void *_private; /* application data */
struct _xmlDoc *context; /* normally an xmlDoc */ struct _xmlDoc *context; /* normally an xmlDoc */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment