diff --git a/HTMLKit/HTMLParser.m b/HTMLKit/HTMLParser.m index 06abf5c..b7d0cd3 100644 --- a/HTMLKit/HTMLParser.m +++ b/HTMLKit/HTMLParser.m @@ -414,6 +414,15 @@ #warning Implement inserting string into node (https://html.spec.whatwg.org/multipage/syntax.html#insert-a-character) } } + +- (void)applyGenericParsingAlgorithmForToken:(HTMLStartTagToken *)token withTokenizerState:(HTMLTokenizerState)state +{ + [self insertElementForToken:token]; + _tokenizer.state = state; + _originalInsertionMode = _insertionMode; + [self switchInsertionMode:HTMLInsertionModeText]; +} + #pragma mark - Insertion Modes - (void)HTMLInsertionModeInitial:(HTMLToken *)token