startTagBody method

void startTagBody(
  1. StartTagToken token
)

Implementation

void startTagBody(StartTagToken token) {
  parser.parseError(token.span, 'unexpected-start-tag', {'name': 'body'});
  if (tree.openElements.length == 1 ||
      tree.openElements[1].localName != 'body') {
    assert(parser.innerHTMLMode);
  } else {
    parser.framesetOK = false;
    token.data.forEach((attr, value) {
      tree.openElements[1].attributes.putIfAbsent(attr, () => value);
    });
  }
}