editoria11y
editoria11y copied to clipboard
Detect empy lists
Can you add a check for empy list tags eg:
<ul></ul>
We have had a few occurrences of these being left in the rich-text editor fields so it would be good if you could detect them.
Hi Bob!
VoiceOver at least ignores the empty <ul>
-- seems to treat it as a <span>
. I...tend to lean against HTML quality tests unless the issue presents an accessibility issue, just because I try to hide the HTML behind the curtain as much as possible for the editors. But I can be convinced...
In the meantime -- which CMS are you in? Some have built straightforward text filter functions or plugins that can be set to strip empty tags on save, e.g. HTML Purifier.
Hi,
That’s interesting – we’re using Drupal 10 so I’ll look into that module!
Thanks again
Bob Bulman Digital Programme and Website Officer Westmorland and Furness Council | Service Centre Parkhouse Building | Kingmoor, Carlisle | CA6 4SJ
Mobile: 07824 622775 Email: @.@.>
From: John Jameson @.> Sent: 21 November 2023 15:02 To: itmaybejj/editoria11y @.> Cc: Bulman, Bob H @.>; Author @.> Subject: Re: [itmaybejj/editoria11y] Detect empy lists (Issue #18)
Hi Bob!
VoiceOver at least ignores the empty
- -- seems to treat it as a . I...tend to lean against HTML quality tests unless the issue presents an accessibility issue, just because I try to hide the HTML behind the curtain as much as possible for the editors. But I can be convinced...
In the meantime -- which CMS are you in? Some have built straightforward text filter functions or plugins that can be set to strip empty tags on save, e.g. HTML Purifierhttps://www.drupal.org/project/htmlpurifier.
— Reply to this email directly, view it on GitHubhttps://github.com/itmaybejj/editoria11y/issues/18#issuecomment-1821094997, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQF37EH23JYCWR6K4T2IINLYFS66PAVCNFSM6AAAAAA7UJGN56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGA4TIOJZG4. You are receiving this because you authored the thread.Message ID: @.@.>>
WARNING:Email attachments may contain malicious and harmful software. If this email is unsolicited and contains an attachment DO NOT open the attachment and advise the ICT Service Desk immediately. Never open an attachment or click on a link within an email if you are not expecting it or it looks suspicious. Do not forward chain emails.