Rename HTML Element's id attribute
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
@property (nonatomic, strong) NSMutableDictionary *attributes;
|
||||
|
||||
@property (nonatomic, copy) NSString *id;
|
||||
@property (nonatomic, copy) NSString *elementId;
|
||||
|
||||
@property (nonatomic, copy) NSString *className;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
#pragma mark - Attributes
|
||||
|
||||
- (NSString *)id
|
||||
- (NSString *)elementId
|
||||
{
|
||||
return _attributes[@"id"] ?: @"";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user