Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since edit sections are usually placed on a page multiple times it is not standards compliant to use Ids in the HTML, I would like to request these be changed to Classes, and maybe a unique Id be added, so for example instead of:
<span id="edit-section">...</span>
It would be
<span class="edit-section" id="edit-section-1">...</span>
Adding the unique Ids as well as Classes may help some themers when building a theme and want to alter a specific section's styling.
Thank you
Aaron
Comment | File | Size | Author |
---|---|---|---|
#1 | edit_section-fixed_markup_and_accessibility-2473411-0.patch | 1.12 KB | AaronMcHale |
Comments
Comment #1
AaronMcHalePatch of my changes, also added a title attribute to the edit link for accessibility, if anyone knows how to get a variable of the section title, that would be appreciated as that's what I was going for, but unfortunately don't have enough time to read through the code trying to find a way to get it.
Comment #3
pifagorDone
Comment #4
pifagor