Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Problem/Motivation
Media embed attributes are rendered in the container div when preview is rendered in editing view. This includes the alt
attribute, which is not a valid attribute on div
element.
Proposed resolution
Do not render attributes on the preview container div in editing view.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#8 | 3248440-4-d10.patch | 57.5 KB | lauriii |
#4 | 3248440-4.patch | 57.64 KB | lauriii |
#4 | 3248440-4-test-only.patch | 1.02 KB | lauriii |
Comments
Comment #2
wim leersComment #4
lauriiiComment #5
nod_This looks straightforward to me :)
Comment #7
larowlanThis doesn't apply to 10.x - can we get a separate patch for that? - thanks.
Comment #8
lauriiiHere's a D10 version of #4.
Comment #9
wim leers+1, very nice!
Comment #13
bnjmnmAgree it is a straightforward change, the attributes shouldn't be assigned to the container on editingDowncast. Added to 10.0.x, 9.4.x, as well as 9.3.x as it is experimental.