Beispiel #1
0
 /// <summary>
 /// Create a new, standalone Element.
 /// </summary>
 /// <remarks>
 /// (Standalone in that is has no parent.)
 /// </remarks>
 /// <param name="tag">tag of this element</param>
 /// <param name="baseUri">the base URI</param>
 /// <param name="attributes">initial attributes</param>
 /// <seealso cref="AppendChild(Node)">AppendChild(Node)</seealso>
 /// <seealso cref="AppendElement(string)">AppendElement(string)</seealso>
 internal Element(Tag tag, string baseUri, Attributes attributes)
     : base(baseUri, attributes)
 {
     Validate.NotNull(tag);
     this.tag = tag;
 }
Beispiel #2
0
 /// <summary>
 /// Create a new Element from a tag and a base URI.
 /// </summary>
 /// <param name="tag">element tag</param>
 /// <param name="baseUri">
 /// the base URI of this element. It is acceptable for the base URI to be an empty
 /// string, but not null.
 /// </param>
 /// <seealso cref="Supremes.Nodes.Tag.ValueOf(string)">Tag.ValueOf(string)</seealso>
 internal Element(Tag tag, string baseUri)
     : this(tag, baseUri, new Attributes())
 {
 }
Beispiel #3
0
 /// <summary>
 /// Create a new, standalone form element.
 /// </summary>
 /// <param name="tag">tag of this element</param>
 /// <param name="baseUri">the base URI</param>
 /// <param name="attributes">initial attributes</param>
 internal FormElement(Tag tag, string baseUri, Attributes attributes) : base(tag, baseUri, attributes)
 {
 }