Add default initializers for HTML Comment, Document Type & Document Fragment

This commit is contained in:
iska
2015-04-25 13:17:02 +02:00
parent 1bc896efc9
commit 071742fb27
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -10,6 +10,11 @@
@implementation HTMLComment
- (instancetype)init
{
return [self initWithData:nil];
}
- (instancetype)initWithData:(NSString *)data
{
self = [super initWithName:@"#comment" type:HTMLNodeComment];