A CSS wildcard selector to match dynamic classnames?
问题 I have a tasks list on my application. Some tasks have subtasks, which are attached to their parents on my html code through a property. These tasks are on a list (both parent and child tasks) in which there is no hierarchy of elements, just a plain <li> elements. The only attachment they have to the parent is the data-parent property. I want to apply a class to every element that shares the parent, it would be easy if the class names were static, but since it's dynamic, it's a bit more