From 72efa18a220794f2f8fcb11a92e748fc9299b745 Mon Sep 17 00:00:00 2001 From: iska Date: Wed, 8 Apr 2015 00:10:04 +0200 Subject: [PATCH] Rename HTML Element's id attribute --- HTMLKit/HTMLElement.h | 2 +- HTMLKit/HTMLElement.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"] ?: @""; }