Open fran6t1 opened 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.
Even with CsQuery.CQ.Create(html)[".someclass"].Children().Wrap, it's not working properly.
It looks like Wrap is acting like WrapAll.. will look into it.
Wrap
WrapAll
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.