diff --git a/HTMLKit/HTMLParser.m b/HTMLKit/HTMLParser.m index 6c67549..182ded1 100644 --- a/HTMLKit/HTMLParser.m +++ b/HTMLKit/HTMLParser.m @@ -1137,7 +1137,7 @@ if (element != nil) { [self emitParseError:@"Unexpected nested Start Tag (a) in
"]; if ([self runAdoptionAgencyAlgorithmForTagName:@"a"]) { - [self processAnyOtherEndTagTokenInBody:token]; + [self processAnyOtherEndTagTokenInBody:token.asTagToken]; return; } [_listOfActiveFormattingElements removeObject:element]; @@ -1156,7 +1156,7 @@ if ([_stackOfOpenElements hasElementInScopeWithTagName:@"nobr"]) { [self emitParseError:@"Unexpected nested Start Tag (nobr) in "]; if ([self runAdoptionAgencyAlgorithmForTagName:@"nobr"]) { - [self processAnyOtherEndTagTokenInBody:token]; + [self processAnyOtherEndTagTokenInBody:token.asTagToken]; return; } [self reconstructActiveFormattingElements]; @@ -1437,7 +1437,7 @@ } } -- (void)processAnyOtherEndTagTokenInBody:(HTMLEndTagToken *)token +- (void)processAnyOtherEndTagTokenInBody:(HTMLTagToken *)token { HTMLElement *node = _stackOfOpenElements.currentNode; NSUInteger index = _stackOfOpenElements.count - 1;