startTagSvg method

void startTagSvg(
  1. StartTagToken token
)

Implementation

void startTagSvg(StartTagToken token) {
  tree.reconstructActiveFormattingElements();
  parser.adjustSVGAttributes(token);
  parser.adjustForeignAttributes(token);
  token.namespace = Namespaces.svg;
  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;
  }
}