Rename HTML Node Type enum values

Use HTMLNode<type> instead of HTML<type>Node
This commit is contained in:
iska
2015-02-26 20:09:27 +01:00
parent c45adc581b
commit fade192485
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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 ?: @"";
}
+1 -1
View File
@@ -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] ?: @"";
+12 -12
View File
@@ -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;