There is an uneeded <ul> wrapping secondary_tasks
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | remove-extra-unordered-list-1359500-9.patch | 533 bytes | devin carlson |
| #7 | before_tabs_and_markup.png | 115.69 KB | devin carlson |
| #7 | after_tabs_and_markup.png | 116.03 KB | devin carlson |
| seven_minor_html_error-D7.patch | 533 bytes | theborg | |
| seven_minor_html_error.patch | 553 bytes | theborg |
Comments
Comment #1
yoroy commentedLooking at the patch, you are removing a ul, not an h2?
Comment #1.0
yoroy commentedtypo error
Comment #2
theborg commentedAh! sorry, yes an ul.
Comment #5
xjmseven_minor_html_error.patch queued for re-testing.
Comment #6
xjmThis markup change is not backportable to D7. However, let's confirm the fix in D8. Please test the patch manually and provide:
Comment #7
devin carlson commentedThe 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 ulwhich, IMO, seem unlikely to be used.
Comment #8
catchLooks 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.
Comment #9
devin carlson commentedThe same patch for D7 (the one in the original issue didn't apply properly).
Comment #10
misc commentedReviewed and tested.
Comment #11
David_Rothstein commentedYeah, 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)
Comment #13
David_Rothstein commentedDrupal 7.16 was a security release only, so this issue is now scheduled for Drupal 7.17 instead.
Fixing tags accordingly.
Comment #13.0
David_Rothstein commentedtypo error