endTagOption method

void endTagOption(
  1. EndTagToken token
)

Implementation

void endTagOption(EndTagToken token) {
  if (tree.openElements.last.localName == 'option') {
    final node = tree.openElements.removeLast();
    node.endSourceSpan = token.span;
  } else {
    parser.parseError(
        token.span, 'unexpected-end-tag-in-select', {'name': 'option'});
  }
}