diff options
Diffstat (limited to 'src/core/text.h')
-rw-r--r-- | src/core/text.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/core/text.h b/src/core/text.h index 97ab900..be927df 100644 --- a/src/core/text.h +++ b/src/core/text.h @@ -8,16 +8,31 @@ #ifndef dom_internal_core_text_h_ #define dom_internal_core_text_h_ +#include <stdbool.h> + #include <dom/core/exceptions.h> -#include "core/node.h" +#include "core/characterdata.h" struct dom_document; struct dom_string; -struct dom_text; -dom_exception dom_text_create(struct dom_document *doc, dom_node_type type, +/** + * A DOM text node + */ +struct dom_text { + struct dom_characterdata base; /**< Base node */ + + bool element_content_whitespace; /**< This node is element + * content whitespace */ +}; + +dom_exception dom_text_create(struct dom_document *doc, struct dom_string *name, struct dom_string *value, struct dom_text **result); +dom_exception dom_text_initialise(struct dom_text *text, + struct dom_document *doc, dom_node_type type, + struct dom_string *name, struct dom_string *value); + #endif |