Add parameterless initializer for the DOCTYPE Token

Otherwise the token has an incorrect type when inited via a "new" call
This commit is contained in:
iska
2015-04-08 21:48:12 +02:00
parent 7ca60ea53a
commit 2c387c13ef
+5
View File
@@ -18,6 +18,11 @@
@implementation HTMLDOCTYPEToken
@synthesize name = _name;
- (instancetype)init
{
return [self initWithName:nil];
}
- (instancetype)initWithName:(NSString *)name
{
self = [super init];