Skip to content

html-lang-require should allow just language (not require region) #652

@coliff

Description

@coliff

Describe the bug

HTMLHint 0.15.0 adds the html-lang-require rule. This requires both a language and a region to be set, however it is perfectly valid to use just a language on a webpage, for example <html lang="en"> should be marked as valid. The region subtag is optional.

REF:

To Reproduce
Steps to reproduce the behavior:

Run htmlhint on a webpage with <html lang="en">

Screenshots

image

cc @baleyko

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