Refactor HTML Tokens into separate files

This commit is contained in:
iska
2014-10-23 23:52:43 +02:00
parent 98357f9d4b
commit 5d3ea61a04
16 changed files with 460 additions and 146 deletions
+31
View File
@@ -0,0 +1,31 @@
//
// HTMLTagToken.h
// HTMLKit
//
// Created by Iska on 23/10/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HTMLToken.h"
@interface HTMLTagToken : HTMLToken
@property (nonatomic, copy) NSString *tagName;
#warning Implement Ordered Dictionary
@property (nonatomic, strong) NSMutableDictionary *attributes;
@property (nonatomic, assign, getter = isSelfClosing) BOOL selfClosing;
- (instancetype)initWithTagName:(NSString *)tagName;
- (void)appendStringToTagName:(NSString *)string;
@end
@interface HTMLStartTagToken : HTMLTagToken
@end
@interface HTMLEndTagToken : HTMLTagToken
@end