1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Added prev and doc pointers to Node, confomity with DOM, Daniel

This commit is contained in:
Daniel Veillard
1998-10-14 02:36:47 +00:00
parent 9e8ce7b875
commit 0bef131b72
5 changed files with 114 additions and 18 deletions

View File

@ -1410,7 +1410,7 @@ xmlNodePtr xmlParseComment(xmlParserCtxtPtr ctxt, int create) {
NEXT;
if (create) {
val = xmlStrndup(start, q - start);
ret = xmlNewComment(val);
ret = xmlNewDocComment(ctxt->doc, val);
free(val);
}
}
@ -2268,7 +2268,7 @@ xmlNodePtr xmlParseStartTag(xmlParserCtxtPtr ctxt) {
* attributes parsing, since local namespace can be defined as
* an attribute at this level.
*/
ret = xmlNewNode(ns, name, NULL);
ret = xmlNewDocNode(ctxt->doc, ns, name, NULL);
/*
* Now parse the attributes, it ends up with the ending