Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM 2 Traversal support #398

Open
wants to merge 1 commit into
base: cc
Choose a base branch
from
Open
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
42 changes: 42 additions & 0 deletions src/Libraries/Web/Xml/XmlNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,41 @@ public XmlNode FirstChild {
}
}

[ScriptField]
public XmlNode FirstElementChild {
get {
return null;
}
}

[ScriptField]
public XmlNode LastChild {
get {
return null;
}
}

[ScriptField]
public XmlNode LastElementChild {
get {
return null;
}
}

[ScriptField]
public XmlNode NextSibling {
get {
return null;
}
}

[ScriptField]
public XmlNode NextElementSibling {
get {
return null;
}
}

[ScriptField]
[ScriptName("nodeName")]
public virtual string Name {
Expand Down Expand Up @@ -109,6 +130,13 @@ public XmlNode PreviousSibling {
}
}

[ScriptField]
public XmlNode PreviousElementSibling {
get {
return null;
}
}

[ScriptField]
[ScriptName("text")]
public string InnerText {
Expand Down Expand Up @@ -145,6 +173,10 @@ public bool HasChildNodes() {
return false;
}

public int ChildElementCount() {
return 0;
}

public XmlNode InsertBefore(XmlNode child, XmlNode refChild) {
return null;
}
Expand All @@ -164,5 +196,15 @@ public XmlNode RemoveChild(XmlNode child) {
public XmlNode ReplaceChild(XmlNode child, XmlNode oldChild) {
return null;
}

public string GetAttribute(string attributename) {
return null;
}

public void SetAttribute(string attributename, string attributevalue) {
}

public void RemoveAttribute(string attributename) {
}
}
}