clearStackToTableContext method

void clearStackToTableContext()

Implementation

void clearStackToTableContext() {
  // 'clear the stack back to a table context'
  while (tree.openElements.last.localName != 'table' &&
      tree.openElements.last.localName != 'html') {
    //parser.parseError(token.span, "unexpected-implied-end-tag-in-table",
    //  {"name":  tree.openElements.last.name})
    tree.openElements.removeLast();
  }
  // When the current node is <html> it's an innerHTML case
}