endTagBlock method

void endTagBlock(
  1. EndTagToken token
)

Implementation

void endTagBlock(EndTagToken token) {
  //Put us back in the right whitespace handling mode
  if (token.name == 'pre') {
    dropNewline = false;
  }
  final inScope = tree.elementInScope(token.name);
  if (inScope) {
    tree.generateImpliedEndTags();
  }
  if (tree.openElements.last.localName != token.name) {
    parser.parseError(token.span, 'end-tag-too-early', {'name': token.name});
  }
  if (inScope) {
    popOpenElementsUntil(token);
  }
}