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

DOM: Added a placeholder for cleaning html_data.

This commit is contained in:
Witold Filipczyk 2007-05-13 20:14:43 +02:00 committed by Witold Filipczyk
parent 5626d6499f
commit 29bfa86d5d
4 changed files with 28 additions and 1 deletions

View File

@ -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
View 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
View 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

View File

@ -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);
}