// end element with /> // for HTML(ns.Length == 0) // not an empty tag <h1></h1> // empty tag <basefont> internal override void WriteEndElement(string prefix, string localName, string ns) { if (ns.Length == 0) { Debug.Assert(prefix.Length == 0); if (trackTextContent && inTextContent != false) { ChangeTextContentMark(false); } if ((currentElementProperties & ElementProperties.EMPTY) == 0) { bufChars[base.bufPos++] = (char)'<'; bufChars[base.bufPos++] = (char)'/'; base.RawText(localName); bufChars[base.bufPos++] = (char)'>'; } } else { //xml content base.WriteEndElement(prefix, localName, ns); } currentElementProperties = (ElementProperties)elementScope.Pop(); }
// end element with /> // for HTML(ns.Length == 0) // not an empty tag <h1></h1> // empty tag <basefont> internal override void WriteEndElement(string prefix, string localName, string ns) { if (ns.Length == 0) { Debug.Assert(prefix.Length == 0); if ((currentElementProperties & ElementProperties.EMPTY) == 0) { bufBytes[base.bufPos++] = (byte)'<'; bufBytes[base.bufPos++] = (byte)'/'; base.RawText(localName); bufBytes[base.bufPos++] = (byte)'>'; } } else { //xml content base.WriteEndElement(prefix, localName, ns); } currentElementProperties = (ElementProperties)elementScope.Pop(); }