mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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->type = type;
|
||||||
node->string = string;
|
node->string = string;
|
||||||
node->length = length;
|
node->length = length;
|
||||||
|
node->parent = parent;
|
||||||
|
|
||||||
if (parent) {
|
if (parent) {
|
||||||
struct dom_node_list **list = get_dom_node_list(parent, node);
|
struct dom_node_list **list = get_dom_node_list(parent, node);
|
||||||
|
@ -190,6 +190,8 @@ struct dom_node {
|
|||||||
uint16_t length;
|
uint16_t length;
|
||||||
unsigned char *string;
|
unsigned char *string;
|
||||||
|
|
||||||
|
struct dom_node *parent;
|
||||||
|
|
||||||
/* Various info depending on the type of the node. */
|
/* Various info depending on the type of the node. */
|
||||||
union dom_node_data {
|
union dom_node_data {
|
||||||
struct dom_document_node document;
|
struct dom_document_node document;
|
||||||
|
Loading…
Reference in New Issue
Block a user