Page MenuHomePhabricator

Add lint error for .mw-content-ltr or .mw-content-rtl without dir or lang
Open, Needs TriagePublic

Description

Please add [[Special:LintErrors]] rules to detect pages that have mw-content-ltr and mw-content-rtl divs without supporting dir or lang attributes. See T287701: Review usages of `.mw-content-ltr` and `.mw-content-rtl` for details.

Event Timeline

AntiCompositeNumber renamed this task from mw-content-ltr and mw-content-rtl to Add lint error for .mw-content-ltr or .mw-content-rtl without dir or lang.Aug 8 2021, 9:07 PM
AntiCompositeNumber updated the task description. (Show Details)

Is there any necessity in mw-content-ltr/rtl class if dir attribute gets defined? VisualEditor, for example, inserts just plain <span dir="ltr" lang="en"> tags in its markup, without any of these classes. Ideally, editors should do the same.