startTagMath method

void startTagMath(
  1. StartTagToken token
)

Implementation

void startTagMath(StartTagToken token) {
  tree.reconstructActiveFormattingElements();
  parser.adjustMathMLAttributes(token);
  parser.adjustForeignAttributes(token);
  token.namespace = Namespaces.mathml;
  tree.insertElement(token);
  //Need to get the parse error right for the case where the token
  //has a namespace not equal to the xmlns attribute
  if (token.selfClosing) {
    tree.openElements.removeLast();
    token.selfClosingAcknowledged = true;
  }
}