summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-22 21:40:48 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-22 21:40:48 +0000
commit41ea8d6204a99f123982e87723657742c2c9765e (patch)
treecee784429f4ed4710b8e620133b50b3b76ede6fd /src
parentaa66ff9f2ea6e86451de2230db4ca04d2b32e5bf (diff)
downloadlibdom-41ea8d6204a99f123982e87723657742c2c9765e.tar.gz
libdom-41ea8d6204a99f123982e87723657742c2c9765e.tar.bz2
Add omitted dom_document_create_comment API
svn path=/trunk/dom/; revision=3459
Diffstat (limited to 'src')
-rw-r--r--src/core/document.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/core/document.c b/src/core/document.c
index 383311e..b73f5e3 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -8,6 +8,7 @@
#include <dom/functypes.h>
#include <dom/core/document.h>
+#include "core/characterdata.h"
#include "core/document.h"
#include "core/namednodemap.h"
#include "core/node.h"
@@ -170,6 +171,28 @@ dom_exception dom_document_create_text_node(struct dom_document *doc,
}
/**
+ * Create a comment node
+ *
+ * \param doc The document owning the node
+ * \param data The data for the node
+ * \param result Pointer to location to receive result
+ * \return DOM_NO_ERR.
+ *
+ * The returned node will have its reference count increased. It is
+ * the responsibility of the caller to unref the node once it has
+ * finished with it.
+ */
+dom_exception dom_document_create_comment(struct dom_document *doc,
+ struct dom_string *data, struct dom_characterdata **result)
+{
+ UNUSED(doc);
+ UNUSED(data);
+ UNUSED(result);
+
+ return DOM_NOT_SUPPORTED_ERR;
+}
+
+/**
* Create a CDATA section
*
* \param doc The document owning the section