startTagNobr method

void startTagNobr(
  1. StartTagToken token
)

Implementation

void startTagNobr(StartTagToken token) {
  tree.reconstructActiveFormattingElements();
  if (tree.elementInScope('nobr')) {
    parser.parseError(token.span, 'unexpected-start-tag-implies-end-tag',
        {'startName': 'nobr', 'endName': 'nobr'});
    processEndTag(EndTagToken('nobr'));
    // XXX Need tests that trigger the following
    tree.reconstructActiveFormattingElements();
  }
  addFormattingElement(token);
}