mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
DOM: Added a placeholder for cleaning html_data.
This commit is contained in:
parent
5626d6499f
commit
29bfa86d5d
@ -1,7 +1,7 @@
|
||||
top_builddir=../../..
|
||||
include $(top_builddir)/Makefile.config
|
||||
|
||||
OBJS = renderer.o
|
||||
OBJS = html.o renderer.o
|
||||
SUBDIRS-$(CONFIG_ECMASCRIPT) += ecmascript
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
13
src/document/dom/html.c
Normal file
13
src/document/dom/html.c
Normal file
@ -0,0 +1,13 @@
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "elinks.h"
|
||||
|
||||
#include "dom/node.h"
|
||||
|
||||
void
|
||||
done_dom_node_html_data(struct dom_node *node)
|
||||
{
|
||||
}
|
||||
|
10
src/document/dom/html.h
Normal file
10
src/document/dom/html.h
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
#ifndef EL__DOCUMENT_DOM_HTML_H
|
||||
#define EL__DOCUMENT_DOM_HTML_H
|
||||
|
||||
struct dom_node;
|
||||
|
||||
void done_dom_node_html_data(struct dom_node *node);
|
||||
|
||||
#endif
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "document/dom/ecmascript/spidermonkey.h"
|
||||
#endif
|
||||
|
||||
#include "document/dom/html.h"
|
||||
#include "dom/node.h"
|
||||
#include "dom/string.h"
|
||||
#include "util/hash.h"
|
||||
@ -467,6 +468,9 @@ done_dom_node(struct dom_node *node)
|
||||
done_dom_node_ecmascript_obj(node);
|
||||
}
|
||||
#endif
|
||||
if (node->type == DOM_NODE_ELEMENT && node->data.element.html_data) {
|
||||
done_dom_node_html_data(node);
|
||||
}
|
||||
done_dom_node_data(node);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user