jamietre/CsQuery ? reverse-engineered prompt
Reverse engineered prompt
Build me a C# library for .NET 4 that can parse HTML, run CSS selectors, and let me edit the page in a jQuery like way.
I want to be able to load an HTML string, find elements with selectors like div, .class, #id, and more advanced CSS3 selectors, then change text, remove nodes, and render the updated HTML back out as a string. It should handle messy real world HTML too, not just perfect markup.
Please make the API feel simple and familiar, so something like a single main object can parse, query, and manipulate documents. If possible, include the common helper methods people expect from jQuery, plus LINQ friendly access to selected nodes.
Also set it up so it can be built from source easily, include a few examples, and make sure the selector engine is fast enough for larger documents. If you need to look up old .NET docs or parser details online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit