Skip to content

linter: jsx-a11y/iframe-has-title has false positive on title={a ?? b} #22422

@stefanprobst

Description

@stefanprobst

What version of Oxlint are you using?

1.64.0

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

{
  "plugins": ["jsx-a11y"],
  "categories": {
    "correctness": "off"
  },
  "rules": {
    "jsx-a11y/iframe-has-title": "error",
  },
}

What happened?

oxlint reports error, even though title prop is provided on <iframe>:

see reproduction at https://github.com/stefanprobst/issue-oxlint-jsx-iframe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions