summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-24 16:56:00 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-24 16:56:00 +0000
commit3b745f0b5e37812ae2d2918ce2762b9e6c726b26 (patch)
tree836dba3cdae88e27a14bec3ae22ade1b5dd8a3ae /src/core/document.c
parentefd1b61ffdbb92f6557e960a4590cd0c403f58df (diff)
downloadlibdom-3b745f0b5e37812ae2d2918ce2762b9e6c726b26.tar.gz
libdom-3b745f0b5e37812ae2d2918ce2762b9e6c726b26.tar.bz2
Documents and document types do not have text content
svn path=/trunk/libdom/; revision=13602
Diffstat (limited to 'src/core/document.c')
-rw-r--r--src/core/document.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/core/document.c b/src/core/document.c
index df5fffa..3f7ce77 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -47,7 +47,7 @@ static struct dom_document_vtable document_vtable = {
{
DOM_NODE_EVENT_TARGET_VTABLE
},
- DOM_NODE_VTABLE
+ DOM_NODE_VTABLE_DOCUMENT
},
DOM_DOCUMENT_VTABLE
};
@@ -1043,6 +1043,25 @@ dom_exception _dom_document_rename_node(dom_document *doc,
return DOM_NOT_SUPPORTED_ERR;
}
+dom_exception _dom_document_get_text_content(dom_node_internal *node,
+ dom_string **result)
+{
+ UNUSED(node);
+
+ *result = NULL;
+
+ return DOM_NO_ERR;
+}
+
+dom_exception _dom_document_set_text_content(dom_node_internal *node,
+ dom_string *content)
+{
+ UNUSED(node);
+ UNUSED(content);
+
+ return DOM_NO_ERR;
+}
+
/*-----------------------------------------------------------------------*/
/* Overload protected virtual functions */