startTagA method

void startTagA(
  1. StartTagToken token
)

Implementation

void startTagA(StartTagToken token) {
  final afeAElement = tree.elementInActiveFormattingElements('a');
  if (afeAElement != null) {
    parser.parseError(token.span, 'unexpected-start-tag-implies-end-tag',
        {'startName': 'a', 'endName': 'a'});
    endTagFormatting(EndTagToken('a'));
    tree.openElements.remove(afeAElement);
    tree.activeFormattingElements.remove(afeAElement);
  }
  tree.reconstructActiveFormattingElements();
  addFormattingElement(token);
}