Add initial implementation for "appropriate place for inserting a node"
https://html.spec.whatwg.org/multipage/syntax.html#creating-and-inserting-nodes
This commit is contained in:
1 parent
3915487ca7
commit
4e3c758f8c
5 files changed
+86
-7
No files matched your search
@@ -33,6 +33,12 @@
|
||||
[_characters appendString:string];
|
||||
}
|
||||
|
||||
- (BOOL)isWhitespaceToken
|
||||
{
|
||||
NSCharacterSet *set = [[NSCharacterSet characterSetWithCharactersInString:@" \t\n\f"] invertedSet];
|
||||
return [_characters rangeOfCharacterFromSet:set].location == NSNotFound;
|
||||
}
|
||||
|
||||
#pragma mark - NSObject
|
||||
|
||||
- (BOOL)isEqual:(id)other
|
||||
|
||||
Reference in new issue
Block a user