1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Add parent member to dom_node

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
This commit is contained in:
Jonas Fonseca 2005-12-08 01:35:48 +01:00 committed by Jonas Fonseca
parent 2b266945cc
commit 1c2f271782
2 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,7 @@ init_dom_node_(unsigned char *file, int line,
node->type = type;
node->string = string;
node->length = length;
node->parent = parent;
if (parent) {
struct dom_node_list **list = get_dom_node_list(parent, node);

View File

@ -190,6 +190,8 @@ struct dom_node {
uint16_t length;
unsigned char *string;
struct dom_node *parent;
/* Various info depending on the type of the node. */
union dom_node_data {
struct dom_document_node document;