Add method generic-parsing-algorithm-for-token when encountering certain "text"-elements

https://html.spec.whatwg.org/multipage/syntax.html#generic-rcdata-element-parsing-algorithm
This commit is contained in:
iska
2015-03-01 23:56:20 +01:00
parent fe36585846
commit c37ad24751
+9
View File
@@ -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