Hello,
finally find some time to start using and testing, and I have a huge problem using in the context of a CMS, or any dynamically generated content.
My menu is genereted dynamically too, with many informations on each entries, mostly via class names (but also data-attributes !). So on any "ul" and "li" there are class saying "this entry will point on an article/a category/an event/etc" or also "this entry is active, because it's part of the breadcrumb of the current page (like one of parent category)", etc.
Real life examples :
<ul class="menu-items" data-depth="1">
<li class="menu-items__item menu-items__item_article menu-items__item_active">
<a href="link to an article">
And all my themes will take all those classes and attributes in account to adjust styles, obviously.
But… this lib rewrite absolutely all top entries ! With own HTML and CSS classes, and only that, removing all the original ones (classes but also attributes). Sub-entries (when there is sub-menus, dropdown menus, etc) remain the sames, the rewriting is only for top entries.
The solution seems simple (I hope): the lib must never change the original code but only add its own classes, never removing which exist (any attributes).