Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #387 from mattjphillips/add_ns_methods

Add missing namespaced methods to Html.Document. And ImportNode.
  • Loading branch information...
commit 7e9e8df1d264b62a8ff774a9330ed047f12ad5de 2 parents d3d561b + 4fac58c
Nikhil Kothari authored
Showing with 49 additions and 0 deletions.
  1. +49 −0 src/Libraries/Web/Html/Document.cs
49 src/Libraries/Web/Html/Document.cs
View
@@ -148,18 +148,53 @@ public static class Document {
public static void AttachEvent(string eventName, ElementEventHandler handler) {
}
+ /// <summary>
+ /// Creates an Attr of the given name. Note that the Attr instance can then be set on an
+ /// Element using the setAttributeNode method. To create an attribute with a qualified name
+ /// and namespace URI, use the CreateAttributeNS method.
+ /// </summary>
+ /// <param name="name">The name of the attribute.</param>
+ /// <returns>A new Attr object with the nodeName attribute set to name, and localName, prefix,
+ /// and namespaceURI set to null. The value of the attribute is the empty string.</returns>
public static ElementAttribute CreateAttribute(string name) {
return null;
}
+ /// <summary>
+ /// Creates an attribute of the given qualified name and namespace URI.
+ /// </summary>
+ /// <param name="namespaceURI">The namespace URI of the attribute to create.</param>
+ /// <param name="qualifiedName">The qualified name of the attribute to instantiate.</param>
+ /// <returns>A new Attr object with the given namespace and qualified name.</returns>
+ public static ElementAttribute CreateAttributeNS(string namespaceURI, string qualifiedName) {
+ return null;
+ }
+
public static DocumentFragment CreateDocumentFragment() {
return null;
}
+ /// <summary>
+ /// Creates an element of the type specified.
+ /// To create an element with a qualified name and namespace URI, use the CreateElementNS method.
+ /// </summary>
+ /// <param name="tagName">The name of the element type to instantiate.</param>
+ /// <returns>A new Element object with the nodeName attribute set to tagName, and localName,
+ /// prefix, and namespaceURI set to null.</returns>
public static Element CreateElement(string tagName) {
return null;
}
+ /// <summary>
+ /// Creates an element of the given qualified name and namespace URI.
+ /// </summary>
+ /// <param name="namespaceURI">The namespace URI of the element to create.</param>
+ /// <param name="qualifiedName">The qualified name of the element type to instantiate.</param>
+ /// <returns>A new Element object with the given namespace and qualified name.</returns>
+ public static Element CreateElementNS(string namespaceURI, string qualifiedName) {
+ return null;
+ }
+
public static MutableEvent CreateEvent(string eventType) {
return null;
}
@@ -168,6 +203,10 @@ public static class Document {
return null;
}
+ public static Element ImportNode(Element imporedNode, bool deep) {
+ return null;
+ }
+
public static void DetachEvent(string eventName, ElementEventHandler handler) {
}
@@ -206,6 +245,16 @@ public static class Document {
return null;
}
+ /// <summary>
+ /// Returns a NodeList of all the Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the Document tree.
+ /// </summary>
+ /// <param name="namespaceURI">The namespace URI of the elements to match on. The special value "*" matches all namespaces.</param>
+ /// <param name="localName">The local name of the elements to match on. The special value "*" matches all local names.</param>
+ /// <returns>A new NodeList object containing all the matched Elements.</returns>
+ public static ElementCollection GetElementsByTagNameNS(string namespaceURI, string localName) {
+ return null;
+ }
+
public static bool HasFocus() {
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.