Skip to content

text-encoding-identifier-case error in JSX; utf8 is not valid HTML #1926

@jp-knj

Description

@jp-knj

According to WhatWG, the value must be an ASCII case-insensitive match for "UTF-8"

please text-encoding-identifier-case of rule check
Thanks for always helping us out

example
This is causing conflicts in our React code (in .tsx files that are linted by eslint):

<form
  id="search_keyword"
  method="get"
  action={action}
  acceptCharset="UTF-8" // get eslint error
>
  <input
    type="search"
    name="q"
    id="q"
  />
        ....
</form>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions