#include <stdlib.h>
#include "core/characterdata.h"
#include "core/comment.h"
#include "core/document.h"
#include "utils/utils.h"
◆ __dom_comment_destroy()
◆ _dom_comment_copy()
◆ _dom_comment_create()
Create a comment node
- Parameters
-
doc | The owning document |
name | The name of the node to create |
value | The text content of the node |
result | Pointer to location to receive created node |
- Returns
- DOM_NO_ERR on success, DOM_NO_MEM_ERR on memory exhaustion.
::doc, ::name and ::value will have their reference counts increased.
The returned node will already be referenced.
◆ _dom_comment_destroy()
Destroy a comment node
- Parameters
-
comment | The node to destroy |
The contents of ::comment will be destroyed and ::comment will be freed