Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 313863

Add active class to links via js instead of directly in l()

$
0
0

Part of #1830598: [meta] support render caching properly.

The active class added by l() means that any content rendered with an l() call in it can only be cached per page - otherwise the .active class will be wrong.

If we added that via JavaScript instead, the markup would be the same for all pages. This applies to the toolbar, menu blocks, and most entity rendering.


Viewing all articles
Browse latest Browse all 313863

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>