startTagFromHead method

void startTagFromHead(
  1. StartTagToken token
)

Implementation

void startTagFromHead(StartTagToken token) {
  parser.parseError(token.span, 'unexpected-start-tag-out-of-my-head',
      {'name': token.name});
  tree.openElements.add(tree.headPointer as Element);
  parser._inHeadPhase.processStartTag(token);
  for (var node in tree.openElements.reversed) {
    if (node.localName == 'head') {
      tree.openElements.remove(node);
      break;
    }
  }
}