diff --git a/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs b/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs index 3ef19b7d881e87..8112fcdad5031c 100644 --- a/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs +++ b/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs @@ -78,7 +78,7 @@ impl Rule for IframeHasTitle { let alt_prop = if let Some(prop) = has_jsx_prop_lowercase(jsx_el, "title") { prop } else { - ctx.diagnostic(IframeHasTitleDiagnostic(jsx_el.span)); + ctx.diagnostic(IframeHasTitleDiagnostic(iden.span)); return; }; @@ -115,7 +115,7 @@ impl Rule for IframeHasTitle { _ => {} } - ctx.diagnostic(IframeHasTitleDiagnostic(jsx_el.span)); + ctx.diagnostic(IframeHasTitleDiagnostic(iden.span)); } } diff --git a/crates/oxc_linter/src/snapshots/iframe_has_title.snap b/crates/oxc_linter/src/snapshots/iframe_has_title.snap index 051264a0b027de..be0c0b93ff6f98 100644 --- a/crates/oxc_linter/src/snapshots/iframe_has_title.snap +++ b/crates/oxc_linter/src/snapshots/iframe_has_title.snap @@ -2,66 +2,66 @@ source: crates/oxc_linter/src/tester.rs expression: iframe_has_title --- - ⚠ eslint(iframe-has-title): Missing `title` attribute for the `iframe` element. + ⚠ eslint-plugin-jsx-a11y(iframe-has-title): Missing `title` attribute for the `iframe` element. ╭─[iframe_has_title.tsx:1:1] 1 │