esc_html__( 'Long Description Invalid', 'accessibility-checker' ), 'info_url' => 'https://a11ychecker.com/help1948', 'slug' => 'long_description_invalid', 'rule_type' => 'error', 'summary' => sprintf( // translators: %s is longdesc=""longdesc=""' ), 'summary_plural' => sprintf( // translators: %s is longdesc=""longdesc=""' ), 'why_it_matters' => esc_html__( 'The longdesc attribute is intended to provide a URL to a long description of an image for screen reader users. However, it is no longer supported in HTML5 and is not reliably recognized by browsers or assistive technologies. Invalid values or blank longdesc attributes may confuse users or fail to convey important information.', 'accessibility-checker' ), 'how_to_fix' => sprintf( // translators: %s is longdesclongdesc' ), 'references' => [ [ 'text' => __( 'W3C: Techniques for WCAG 2.1 – H45: Using longdesc', 'accessibility-checker' ), 'url' => 'https://www.w3.org/WAI/WCAG21/Techniques/html/H45', ], [ 'text' => __( 'MDN Web Docs: longdesc – HTML attribute', 'accessibility-checker' ), 'url' => 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#longdesc', ], [ 'text' => __( 'MDN Web Docs: ARIA: aria-describedby attribute', 'accessibility-checker' ), 'url' => 'https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby', ], ], 'ruleset' => 'js', 'wcag' => '1.1.1', 'severity' => 2, // High. 'affected_disabilities' => [ AffectedDisabilities::BLIND, AffectedDisabilities::LOW_VISION, AffectedDisabilities::DEAFBLIND, ], ]; } }