endTagTable method

Token? endTagTable(
  1. TagToken token
)

Implementation

Token? endTagTable(TagToken token) {
  // XXX AT Any ideas on how to share this with endTagTable?
  if (tree.elementInScope('tbody', variant: 'table') ||
      tree.elementInScope('thead', variant: 'table') ||
      tree.elementInScope('tfoot', variant: 'table')) {
    clearStackToTableBodyContext();
    endTagTableRowGroup(EndTagToken(tree.openElements.last.localName));
    return token;
  } else {
    // innerHTML case
    assert(parser.innerHTMLMode);
    parser.parseError(token.span, 'undefined-error');
  }
  return null;
}