Validator doesn't know that pes is Persian

Showing results for 
https://w3c.github.io/i18n-drafts/questions/qa-lang-why.pes.html

 1.

    *Warning*: This document appears to be written in Persian but the
    |html| start tag has |lang="pes"|. Consider using |lang="fa"| (or
    variant) instead.

     From line 1, column 16; to line 2, column 27

    |TYPE html>*↩<html lang="pes" dir="rtl">*↩<head|

    For further guidance, consult Declaring the overall language of a
    page
    <https://www.w3.org/International/techniques/authoring-html.en?open=language&open=textprocessing#textprocessing>
    and Choosing language tags
    <https://www.w3.org/International/techniques/authoring-html.en?open=language&open=langvalues#langvalues>.

    If the HTML checker has misidentified the language of this document,
    please file an issue report
    <https://github.com/validator/validator/issues/new> or send e-mail
    to report the problem <mailto:www-validator@w3.org>.


'fa' is a macrolanguage. The document is written in Iranian Persian 
(rather than, say, Dari), and the more precise langtag is 'pes'. See 
https://r12a.github.io/app-subtags/?find=persian

ri

Received on Saturday, 10 May 2025 13:01:25 UTC