How do I select the <li> element that is a direct parent of the anchor element?
As an example, my CSS would be something like this:
li < a.active {
property: value;
}
Obviously, JavaScript can be used to accomplish this, but I'm expecting that CSS Level 2 has some sort of built-in workaround.
I can't relocate the active element to the li> element since the menu I'm trying to style is generated by a CMS (unless I theme the menu creation module, which I'd rather not do).