The HTML generated by system_preprocess_block (in system.module) when outputting menu blocks contains an attribute called 'classes' that contains 'block-menu'.

This was probably created by somebody accidentally writing out 'class' as 'classes' in the attributes array.


 <div id="block-footer"  class="block block-system contextual-region" role="navigation" classes="block-menu">

I will attach a patch after I get an issue number.

#1 classes-2003388-1.patch494 bytesnicholaspaun
PASSED: [[SimpleTest]]: [MySQL] 55,853 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


nicholaspaun’s picture

Status: Active » Needs review
494 bytes
PASSED: [[SimpleTest]]: [MySQL] 55,853 pass(es). View
Sam Moore’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #1 works for me.

benjifisher’s picture

Issue tags: +Quick fix

With a fresh install of D8, Minimal profile, the Tools menu on the home page looks like this before the patch:

<div id="block-tools" class="block block-system" classes="block-menu" role="navigation">

and after the patch it looks like this:

<div id="block-tools" class="block block-system block-menu" role="navigation">

+1 for RTBC

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

nice catch! Committed 7924d88 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.