endTagTableCell method
void
endTagTableCell(
- EndTagToken token
Implementation
void endTagTableCell(EndTagToken token) {
if (tree.elementInScope(token.name, variant: 'table')) {
tree.generateImpliedEndTags(token.name);
if (tree.openElements.last.localName != token.name) {
parser.parseError(
token.span, 'unexpected-cell-end-tag', {'name': token.name});
popOpenElementsUntil(token);
} else {
final node = tree.openElements.removeLast();
node.endSourceSpan = token.span;
}
tree.clearActiveFormattingElements();
parser.phase = parser._inRowPhase;
} else {
parser.parseError(token.span, 'unexpected-end-tag', {'name': token.name});
}
}