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.
I've seen that the module is not cleaning the classes and uses a complete string instead of adding them as an array.
Added patch with Html::cleanCssIdentifier on each class and add them as an array.
Comment | File | Size | Author |
---|---|---|---|
#9 | After.png | 10.61 KB | renatog |
#9 | Before.png | 11.11 KB | renatog |
#4 | clean_unvalid_classes-2706511-4.patch | 792 bytes | alzz |
#2 | clean_unvalid_classes-2706511-2.patch | 783 bytes | alzz |
Comments
Comment #2
alzz CreditAttribution: alzz at Metadrop commentedAttaching patch!
Thanks for porting the module to D8, missing it so much!
Comment #3
alzz CreditAttribution: alzz at Metadrop commentedOops! changing to needs review
Comment #4
alzz CreditAttribution: alzz at Metadrop commentedModified patch to not sanitize underscore into hyphen as version 7 does.
Comment #5
CRZDEV CreditAttribution: CRZDEV at Metadrop commentedLast patch works fine (#4), working the same way as drupal 7 module.
Thanks!
Comment #6
ScottLozier CreditAttribution: ScottLozier as a volunteer commentedConfirming #4 is working as expected.
Comment #7
neha.gangwar CreditAttribution: neha.gangwar as a volunteer commentedChanged the title for better understanding.
Comment #8
neha.gangwar CreditAttribution: neha.gangwar as a volunteer commentedPatch #4 works cleanly.
Comment #9
renatogHi people.
I applied the patch #4 and works good for me.
Before:
After:
Thank you very much.
Good Work.
Regards.
Comment #11
renatogFixed.
Committed to the dev branch.
Thank you very much for contribution people.
Good Work.
Regards.