endTagHtml method

void endTagHtml(
  1. Token token
)

Implementation

void endTagHtml(Token token) {
  for (var node in tree.openElements.reversed) {
    if (node.localName == 'html') {
      node.endSourceSpan = token.span;
      break;
    }
  }
  if (parser.innerHTMLMode) {
    parser.parseError(token.span, 'unexpected-end-tag-after-body-innerhtml');
  } else {
    parser.phase = parser._afterAfterBodyPhase;
  }
}