The htmlnode is not thread safe.

Aug 1, 2010 at 3:55 AM
Edited Aug 1, 2010 at 4:04 AM

some times, one result will be missing when we update two htmlnodes in two parallel threads.

 

Parallel.ForEach(HtmlNodes,node=> node.SetAttributeValue("value","some text"));

if you want to see more detail code,you can get test code from http://sparrow.codeplex.com/SourceControl/changeset/view/9aa74a1a1b89#Tests%2fSparrow.HtmlTemplate.Tests%2fCheckboxTest.cs