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:
parent
2b266945cc
commit
1c2f271782
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user