clearStackToTableRowContext method

void clearStackToTableRowContext()

Implementation

void clearStackToTableRowContext() {
  while (true) {
    final last = tree.openElements.last;
    if (last.localName == 'tr' || last.localName == 'html') break;

    parser.parseError(
        last.sourceSpan,
        'unexpected-implied-end-tag-in-table-row',
        {'name': tree.openElements.last.localName});
    tree.openElements.removeLast();
  }
}