parseRCDataRawtext method
Generic RCDATA/RAWTEXT Parsing algorithm
contentType
- RCDATA or RAWTEXT
Implementation
void parseRCDataRawtext(Token token, String contentType) {
assert(contentType == 'RAWTEXT' || contentType == 'RCDATA');
tree.insertElement(token as StartTagToken);
if (contentType == 'RAWTEXT') {
tokenizer.state = tokenizer.rawtextState;
} else {
tokenizer.state = tokenizer.rcdataState;
}
originalPhase = phase;
phase = _textPhase;
}