startTagOption method

void startTagOption(
  1. StartTagToken token
)

Implementation

void startTagOption(StartTagToken token) {
  // We need to imply </option> if <option> is the current node.
  if (tree.openElements.last.localName == 'option') {
    tree.openElements.removeLast();
  }
  tree.insertElement(token);
}