summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-02-04 10:36:57 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2017-02-04 10:38:32 +0000
commit51ab1cdf25e80490023577c82cc35b68335eff5e (patch)
tree72bf8d1687a78f80558baac579431d4e8181c6e6
parent25f17fdecaa895478a9b2e3e59b044ac5a0e3c4d (diff)
downloadlibdom-51ab1cdf25e80490023577c82cc35b68335eff5e.tar.gz
libdom-51ab1cdf25e80490023577c82cc35b68335eff5e.tar.bz2
Change dom node type count to last value plus one.
-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;