Modified:
/trunk/Fizzler.Sandbox/Xml/XmlNodeOps.cs
/trunk/Fizzler.Systems.HtmlAgilityPack/HtmlNodeOps.cs
=======================================
--- /trunk/Fizzler.Sandbox/Xml/XmlNodeOps.cs Wed Oct 6 16:35:37 2010
+++ /trunk/Fizzler.Sandbox/Xml/XmlNodeOps.cs Wed Oct 6 16:42:39 2010
@@ -122,7 +122,7 @@
public virtual Selector<XmlNode> NthChild(int a, int b)
{
if (a != 1)
- throw new NotSupportedException("The nth-child(an+b)
selector where a in is not 1 are not supported.");
+ throw new NotSupportedException("The nth-child(an+b)
selector where a is not 1 is not supported.");
return nodes => from n in nodes
let elements =
n.ParentNode.Elements().Take(b).ToArray()
@@ -198,7 +198,7 @@
public Selector<XmlNode> NthLastChild(int a, int b)
{
if (a != 1)
- throw new NotSupportedException("The nth-last-child(an+b)
selector where a in is not 1 are not supported.");
+ throw new NotSupportedException("The nth-last-child(an+b)
selector where a is not 1 is not supported.");
return nodes => from n in nodes
let elements =
n.ParentNode.Elements().Skip(Math.Max(0, n.ParentNode.Elements().Count() -
b)).Take(b).ToArray()
=======================================
--- /trunk/Fizzler.Systems.HtmlAgilityPack/HtmlNodeOps.cs Wed Oct 6
16:35:37 2010
+++ /trunk/Fizzler.Systems.HtmlAgilityPack/HtmlNodeOps.cs Wed Oct 6
16:42:39 2010
@@ -190,7 +190,7 @@
public virtual Selector<HtmlNode> NthChild(int a, int b)
{
if (a != 1)
- throw new NotSupportedException("The nth-child(an+b)
selector where a in is not 1 are not supported.");
+ throw new NotSupportedException("The nth-child(an+b)
selector where a is not 1 is not supported.");
return nodes => from n in nodes
let elements =
n.ParentNode.Elements().Take(b).ToArray()
@@ -266,7 +266,7 @@
public Selector<HtmlNode> NthLastChild(int a, int b)
{
if (a != 1)
- throw new NotSupportedException("The nth-last-child(an+b)
selector where a in is not 1 are not supported.");
+ throw new NotSupportedException("The nth-last-child(an+b)
selector where a is not 1 is not supported.");
return nodes => from n in nodes
let elements =
n.ParentNode.Elements().Skip(Math.Max(0, n.ParentNode.Elements().Count() -
b)).Take(b).ToArray()