diff --git a/HTMLKit/HTMLComment.m b/HTMLKit/HTMLComment.m
index d591914..263a6c4 100644
--- a/HTMLKit/HTMLComment.m
+++ b/HTMLKit/HTMLComment.m
@@ -12,7 +12,7 @@
- (instancetype)initWithData:(NSString *)data
{
- self = [super initWithName:@"#comment" type:HTMLCommentNode];
+ self = [super initWithName:@"#comment" type:HTMLNodeComment];
if (self) {
self.data = data ?: @"";
}
diff --git a/HTMLKit/HTMLDocumentType.m b/HTMLKit/HTMLDocumentType.m
index dc2de5b..748f550 100644
--- a/HTMLKit/HTMLDocumentType.m
+++ b/HTMLKit/HTMLDocumentType.m
@@ -14,7 +14,7 @@
publicIdentifier:(NSString *)publicIdentifier
systemIdentifier:(NSString *)systemIdentifier
{
- self = [super initWithName:name type:HTMLDocumentTypeNode];
+ self = [super initWithName:name type:HTMLNodeDocumentType];
if (self) {
_publicIdentifier = [publicIdentifier copy] ?: @"";
_systemIdentifier = [systemIdentifier copy] ?: @"";
diff --git a/HTMLKit/HTMLNode.h b/HTMLKit/HTMLNode.h
index ca7513b..7d91887 100644
--- a/HTMLKit/HTMLNode.h
+++ b/HTMLKit/HTMLNode.h
@@ -10,18 +10,18 @@
typedef NS_ENUM(short, HTMLNodeType)
{
- HTMLElementNode = 1,
- HTMLAttributeNode = 2, // historical
- HTMLTextNode = 3,
- HTMLCDATASectionNode = 4, // historical
- HTMLEntityReferenceNode = 5, // historical
- HTMLEntityNode = 6, // historical
- HTMLProcessingInstructionNode = 7,
- HTMLCommentNode = 8,
- HTMLDocumentNode = 9,
- HTMLDocumentTypeNode = 10,
- HTMLDocumentFragmentNode = 11,
- HTMLNotationNode = 12 // historical
+ HTMLNodeElement = 1,
+ HTMLNodeAttribute = 2, // historical
+ HTMLNodeText = 3,
+ HTMLNodeCDATASection = 4, // historical
+ HTMLNodeEntityReference = 5, // historical
+ HTMLNodeEntity = 6, // historical
+ HTMLNodeProcessingInstruction = 7,
+ HTMLNodeComment = 8,
+ HTMLNodeDocument = 9,
+ HTMLNodeDocumentType = 10,
+ HTMLNodeDocumentFragment = 11,
+ HTMLNodeNotation = 12 // historical
};
@class HTMLDocument;