jamietre / CsQuery

CsQuery is a complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4.
Other
1.16k stars 250 forks source link

Wrap issues #151

Open fran6t1 opened 10 years ago

fran6t1 commented 10 years ago

CsQuery.CQ.Create(html)[".someclass>*"].Wrap("<td></td>");

html is like : <div class="someclass"><div></div><span class="p"><span></span></span></div>

expected: <div class="someclass"><td><div></div></td><td><span class="p"><span></span></span></td></div> but it's not what I get.

I can get it working on jquery.

fran6t1 commented 10 years ago

Even with CsQuery.CQ.Create(html)[".someclass"].Children().Wrap, it's not working properly.

jamietre commented 10 years ago

It looks like Wrap is acting like WrapAll.. will look into it.