endTagFrameset method

void endTagFrameset(
  1. EndTagToken token
)

Implementation

void endTagFrameset(EndTagToken token) {
  if (tree.openElements.last.localName == 'html') {
    // innerHTML case
    parser.parseError(
        token.span, 'unexpected-frameset-in-frameset-innerhtml');
  } else {
    final node = tree.openElements.removeLast();
    node.endSourceSpan = token.span;
  }
  if (!parser.innerHTMLMode &&
      tree.openElements.last.localName != 'frameset') {
    // If we're not in innerHTML mode and the the current node is not a
    // "frameset" element (anymore) then switch.
    parser.phase = parser._afterFramesetPhase;
  }
}