예제 #1
0
 /// <summary>
 /// Creates a namespace-specific HTML5 element (e.g. SVG elements)
 /// </summary>
 /// <param name="ns">The namespace of the element</param>
 /// <param name="tagName">Element's tag name.</param>
 /// <returns>Element created</returns>
 // ReSharper disable once InconsistentNaming
 public static Element CreateNS(string ns, string tagName) => ElementFactory.CreateElementNs(ns, tagName);
예제 #2
0
 /// <summary>
 /// Creates an element
 /// </summary>
 /// <param name="tagName">Element's tag name.</param>
 /// <param name="id">The identifier.</param>
 /// <returns>Element created</returns>
 public static Element Create(string tagName, string id) => ElementFactory.CreateElement(tagName, id);