- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Per #17, 🐛 Upgrade filter system to HTML5 Fixed fixed this 🥳
To mark language changes in body text, editors can use <span lang="nl">Nederlands</span>
.
But this get rendered in invalid HTML, where we will find the attribute xml:lang twice. This will fail in validators and fail wcag2.
<p><span dir="rtl" lang="he" xml:lang="he" xml:lang="he">תוכן עניינים</span></p>
- add basic page
- keep text format 'basic HTML'
- change wysiwyg-editor to 'source'
- add <span dir="ltr" lang="fr">vive la vie</span>
- click save and publish
- look in the source HTML (not DOM), you will find:
<span dir="ltr" lang="fr" xml:lang="fr" xml:lang="fr">vive la vie</span>
we would expect:
<span dir="ltr" lang="fr">vive la vie</span>
Basic HTML is using several filters. The problematic filter is 'Restrict images to this site', in combination with 'Correct faulty and chopped off HTML'. As other combinations with 'Correct faulty and chopped off HTML' work, 'Restrict images to this site' is suspicious.
This might be related to the fact that Drupal has no html5 parser ( 🌱 [Meta] PHP DOM (libxml2) misinterprets HTML5 Active ). But even for html4, this result is invalid.
Closed: outdated
11.0 🔥
It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Per #17, 🐛 Upgrade filter system to HTML5 Fixed fixed this 🥳