Comments

yoroy’s picture

Looking at the patch, you are removing a ul, not an h2?

yoroy’s picture

Issue summary: View changes

typo error

theborg’s picture

Ah! sorry, yes an ul.

xjm’s picture

seven_minor_html_error.patch queued for re-testing.

xjm’s picture

This markup change is not backportable to D7. However, let's confirm the fix in D8. Please test the patch manually and provide:

  • Before-and-after markup in the seven theme where secondary tasks are set.
  • Before-and-after screenshots.
devin carlson’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new116.03 KB
new115.69 KB

The patch for D8 in #1 applied cleanly with an offset and removed the duplicate <ul class="tabs secondary"></ul>.

I'm not sure why this change couldn't be backported to D7 since it is invalid markup (W3.org displays 2 errors) and, since it is simply presenting a duplicate <ul class="tabs secondary">, the possible CSS targeting the invalid markup would be something like:

  • .tabs .tabs
  • .secondary .secondary
  • .tabs-secondary ul ul

which, IMO, seem unlikely to be used.

catch’s picture

Version: 8.x-dev » 7.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)
Issue tags: +Needs backport to D7

Looks good. Committed/pushed to 8.x.

Moving to 7.x to discuss backport some more, it looks like just a straight error to me so I think it might be OK.

devin carlson’s picture

Assigned: theborg » devin carlson
Status: Patch (to be ported) » Needs review
StatusFileSize
new533 bytes

The same patch for D7 (the one in the original issue didn't apply properly).

misc’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested.

David_Rothstein’s picture

Status: Reviewed & tested by the community » Fixed

Yeah, I think this is OK for backport given that the nested <ul> tags are completely broken HTML.

I suppose it could cause problems for someone doing something unusual with the rendering (e.g., overriding theme_menu_local_tasks() to use different classes but then still having CSS around which references the old classes), but that seems pretty unlikely. Also, since Seven is primarily used on admin pages only, I think we can be more lenient with changing its HTML.

So... committed to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/8773e7f (with a mention in CHANGELOG.txt, and this will also be mentioned in the release notes, given that it's a markup change)

Status: Fixed » Closed (fixed)

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

David_Rothstein’s picture

Issue tags: +7.17 release notes

Drupal 7.16 was a security release only, so this issue is now scheduled for Drupal 7.17 instead.

Fixing tags accordingly.

David_Rothstein’s picture

Issue summary: View changes

typo error