summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dom/core/node.h2
-rw-r--r--src/core/node.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/dom/core/node.h b/include/dom/core/node.h
index 35be6f0..ba273af 100644
--- a/include/dom/core/node.h
+++ b/include/dom/core/node.h
@@ -68,7 +68,7 @@ typedef enum {
DOM_NOTATION_NODE = 12,
/* And a count of the number of node types */
- DOM_NODE_TYPE_COUNT = DOM_NOTATION_NODE
+ DOM_NODE_TYPE_COUNT
} dom_node_type;
typedef struct dom_node_internal dom_node_internal;
diff --git a/src/core/node.c b/src/core/node.c
index d72af0f..17f93dd 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -1933,6 +1933,7 @@ bool _dom_node_permitted_child(const dom_node_internal *parent,
case DOM_COMMENT_NODE:
case DOM_DOCUMENT_TYPE_NODE:
case DOM_NOTATION_NODE:
+ case DOM_NODE_TYPE_COUNT:
valid = false;
break;