[fizzler] r269 committed - Fixed typos in exception messages.

1 view
Skip to first unread message

fiz...@googlecode.com

unread,
Oct 6, 2010, 7:43:39 PM10/6/10
to fizzler...@googlegroups.com
Revision: 269
Author: azizatif
Date: Wed Oct 6 16:42:39 2010
Log: Fixed typos in exception messages.
http://code.google.com/p/fizzler/source/detail?r=269

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()

Reply all
Reply to author
Forward
0 new messages