endTagBr method

void endTagBr(
  1. EndTagToken token
)

Implementation

void endTagBr(EndTagToken token) {
  parser.parseError(token.span, 'unexpected-end-tag-treated-as',
      {'originalName': 'br', 'newName': 'br element'});
  tree.reconstructActiveFormattingElements();
  tree.insertElement(
      StartTagToken('br', data: LinkedHashMap<Object, String>()));
  tree.openElements.removeLast();
}