Add implementation for the length property for HTML Nodes
See: https://dom.spec.whatwg.org/#concept-node-length https://heycam.github.io/webidl/#dfn-code-unit
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
self.data = textContent ?: @"";
|
||||
}
|
||||
|
||||
- (NSUInteger)length
|
||||
{
|
||||
return self.data.length;
|
||||
}
|
||||
|
||||
#pragma mark - NSCopying
|
||||
|
||||
- (id)copyWithZone:(NSZone *)zone
|
||||
|
||||
Reference in New Issue
Block a user