Page MenuHomePhabricator

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

Assigned To
None
Authored By
Dave_Braunschweig
Aug 5 2021, 5:08 PM
Referenced Files
None
Tokens
"Love" token, awarded by Quiddity."Love" token, awarded by Jdlrobson."Yellow Medal" token, awarded by IKhitron.

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.

Arlolra triaged this task as Medium priority.Aug 17 2023, 10:59 PM