startTagMeta method
void
startTagMeta(
- StartTagToken token
Implementation
void startTagMeta(StartTagToken token) {
tree.insertElement(token);
tree.openElements.removeLast();
token.selfClosingAcknowledged = true;
final attributes = token.data;
if (!parser.tokenizer.stream.charEncodingCertain) {
final charset = attributes['charset'];
final content = attributes['content'];
if (charset != null) {
parser.tokenizer.stream.changeEncoding(charset);
} else if (content != null) {
final data = EncodingBytes(content);
final codec = ContentAttrParser(data).parse();
parser.tokenizer.stream.changeEncoding(codec);
}
}
}