diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-22 21:40:48 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-22 21:40:48 +0000 |
commit | a176515001037f87312dcca7666549ed565632a2 (patch) | |
tree | cee784429f4ed4710b8e620133b50b3b76ede6fd /src/core | |
parent | f70939347531148c7e7013dd10ce7054ed4ca525 (diff) | |
download | libdom-a176515001037f87312dcca7666549ed565632a2.tar.gz libdom-a176515001037f87312dcca7666549ed565632a2.tar.bz2 |
Add omitted dom_document_create_comment API
svn path=/trunk/dom/; revision=3459
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/document.c | 23 |
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 |