Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions src/Libraries/Web/Html/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,53 @@ public static void AddEventListener(string eventName, ElementEventListener liste
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;
}
Expand All @@ -168,6 +203,10 @@ public static Element CreateTextNode(string data) {
return null;
}

public static Element ImportNode(Element imporedNode, bool deep) {
return null;
}

public static void DetachEvent(string eventName, ElementEventHandler handler) {
}

Expand Down Expand Up @@ -206,6 +245,16 @@ public static ElementCollection GetElementsByTagName(string tagName) {
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;
}
Expand Down