endTagAppletMarqueeObject method

void endTagAppletMarqueeObject(
  1. EndTagToken token
)

Implementation

void endTagAppletMarqueeObject(EndTagToken token) {
  if (tree.elementInScope(token.name)) {
    tree.generateImpliedEndTags();
  }
  if (tree.openElements.last.localName != token.name) {
    parser.parseError(token.span, 'end-tag-too-early', {'name': token.name});
  }
  if (tree.elementInScope(token.name)) {
    popOpenElementsUntil(token);
    tree.clearActiveFormattingElements();
  }
}