-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot easily add or remove class #10
Comments
Hello @nde-agridea , You are 100% right. A lot of good methods which could easily make the code easier are missing. We are currently mainly focusing on adding documentation: http://html-agility-pack.net/api But we also add from time to time new methods && options. By example, a change I believe will happen soon will be to support CSS selector as jQuery do. I will check this request during the weekend and will let you know when we will implement it if it's not implemented during the weekend. Best Regards, Jonathan |
Hello @nde-agridea , Sorry for the delay, it seem I forget to answer you. Class helper has been added today, it should be available within a few hours. Best Regards, Jonathan |
Hello @jonalbrecht , The version v1.5.0-beta9 has been released: We added the following helper:
Let us know if these helpers are what you were looking for. Best Regards, Jonathan |
Hi Jonathan,
Many thanks for the update and congrats for the good work. Good on you and kudos for this great project.
Kins regards,
Nicolas Destrez
Technologie de l’information, Ingénieur Développement Web
AGRIDEA, Jordils 1, CP 1080, CH-1001 Lausanne
[email protected]<mailto:[email protected]>
+41 (0)21 619 44 89<tel:%2B41%20%280%2921%20619%2044%2089> Direct
+41 (0)21 619 44 00<tel:%2B41%20%280%2921%20619%2044%2000> Centrale,
+41 (0)21 617 02 61<tel:%2B41%20%280%2921%20617%2002%2061> Fax
www.agridea.ch<http://www.agridea.ch/>
Formation continue AGRIDEA : Programme 2017<http://www.agridea.ch/fileadmin/Cours/formation_continue_programme_2017.pdf> – Restez à jour
…________________________________
From: Jonathan Magnan [[email protected]]
Sent: Saturday, June 17, 2017 17:23
To: zzzprojects/html-agility-pack
Cc: Destrez Nicolas; Mention
Subject: Re: [zzzprojects/html-agility-pack] Cannot easily add or remove class (#10)
Hello @jonalbrecht<https://github.com/jonalbrecht> ,
The version v1.5.0-beta9 has been released:
https://www.nuget.org/packages/HtmlAgilityPack/1.5.0-beta9
We added the following helper:
* AddClass
* RemoveClass
* ReplaceClass
Let us know if these helpers are what you were looking for.
Best Regards,
Jonathan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#10 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMgzphV-f_sWt9oCj2QoxKKQ6NemYn9Bks5sE-95gaJpZM4NqIzC>.
|
Closing comment: version released. |
The library does not allow to add or remove a class to a tag in an easy and straightforward way. Methods like Node.AddClass() or .RemoveClass() would greatly simplify the operation, instead of fumbling around with the Node.Attributes["class"] HtmlAttribute. Classes should be treated as first class citizens IMHO. Please add these in the API.
The text was updated successfully, but these errors were encountered: