Beispiel #1
0
 public static THTMLElement createHTMLElement <THTMLElement>(this Document document, HTMLElementTag <THTMLElement> tag)
     where THTMLElement : HTMLElement
 {
     return(document.Method <THTMLElement>("createElementNS").Invoke("http://www.w3.org/1999/xhtml", tag.Name));
 }
Beispiel #2
0
 public static HTMLCollection <THTMLElement> getHTMLElementsByTagName <THTMLElement>(this Element element, HTMLElementTag <THTMLElement> tag)
     where THTMLElement : HTMLElement
 {
     return(element.Method <HTMLCollection <THTMLElement> >("getElementsByTagNameNS").Invoke("http://www.w3.org/1999/xhtml", tag.Name));
 }