Visitar URL original
Empty lang attribute detected as not well-formed · Issue #299 · squizlabs/HTML_CodeSniffer · GitHub
Skip to content

Empty lang attribute detected as not well-formed #299

Open

Description

@FlorentTorregrosa

Hello,

I am using Pa11y-CI with HTML_CodeSniffer to scan my Drupal website and it returned:

The language specified in the lang attribute of this element does not appear to be well-formed.

   (#comment-30 > footer > p > span:nth-child(1) > span)

   <span lang="" typeof="schema:Person" property="schema:name" datatype="">Anonymous (non vérifié)</span>

You can see the "problem" when there is a comment, example: https://florent-torregrosa.fr/blog/headers-http-pour-la-securite-avec-drupal

First I opened an issue on Drupal core: https://www.drupal.org/project/drupal/issues/3203292 but as said in the comment https://www.drupal.org/project/drupal/issues/3203292#comment-14144276, an empty lang attribute is allowed in HTML specification.

Then I opened an issue on Pa11y-CI pa11y/pa11y-ci#146 to be redirected here.

Thanks for any help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions