endTagTableRowGroup method

void endTagTableRowGroup(
  1. EndTagToken token
)

Implementation

void endTagTableRowGroup(EndTagToken token) {
  if (tree.elementInScope(token.name, variant: 'table')) {
    clearStackToTableBodyContext();
    final node = tree.openElements.removeLast();
    node.endSourceSpan = token.span;
    parser.phase = parser._inTablePhase;
  } else {
    parser.parseError(
        token.span, 'unexpected-end-tag-in-table-body', {'name': token.name});
  }
}