diff --git a/HTMLKit/HTMLElement.h b/HTMLKit/HTMLElement.h index 20bc7f4..1085162 100644 --- a/HTMLKit/HTMLElement.h +++ b/HTMLKit/HTMLElement.h @@ -18,7 +18,7 @@ @property (nonatomic, strong) NSMutableDictionary *attributes; -@property (nonatomic, copy) NSString *id; +@property (nonatomic, copy) NSString *elementId; @property (nonatomic, copy) NSString *className; diff --git a/HTMLKit/HTMLElement.m b/HTMLKit/HTMLElement.m index 6d035a0..a363003 100644 --- a/HTMLKit/HTMLElement.m +++ b/HTMLKit/HTMLElement.m @@ -52,7 +52,7 @@ #pragma mark - Attributes -- (NSString *)id +- (NSString *)elementId { return _attributes[@"id"] ?: @""; }