Bug: `<img fetchPriority>` attribute is not supported

This issue has been created since 2022-11-15.

React version: 18.0.0

Steps To Reproduce

  1. Render an <img src="#" fetchPriority="high" /> tag

Link to code example: https://playcode.io/1011424

The current behavior

A warning is logged:

Warning: React does not recognize the `fetchPriority` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `fetchpriority` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    at img
    at div
    at App

The expected behavior

React should recognize the fetchPriority prop and emit it as fetchpriority into HTML.

To be clear, using <img fetchpriority="high"> works and doesn’t log a warning. However, it is inconsistent with other DOM APIs. In the JS DOM API, the attribute is camel-cased as HTMLImageElement.fetchPriority.

fetchPriority has been supported in Chromium browsers since Chromium 101 (Apr 26, 2022). Per Patrick Meenan, Mozilla is working on an implementation as well.

Semigradsky wrote this answer on 2022-11-27

Any news?

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Email type is not proper validating emails 4 2022-01-31 2022-11-02
executor: support `select count(1) from table` 2 2022-02-21 2022-10-08
Support for retrieving CBR rules 0 2022-02-03 2022-07-29
[BUG_SP] Mähen nur auf Ackergras mit Feldrandkurs 6 2022-02-01 2022-10-11
Interview partners for research about communication in GitHub projects wanted 0 2022-11-11 2022-11-17
Rename repo to datasette-desktop 3 2021-09-09 2022-10-18
Importing a large CSV file fails with a javascript error pop-up (possible timeout issue) 1 2021-09-09 2022-11-09
Bundle a sensible collection of default plugins 2 2021-09-09 2022-10-18
Error when submitting for eye 0/1: 108 Assetto Corsa Competizione 3 2021-08-12 2022-11-11
ReferenceError: sys is not defined 2 2021-12-15 2022-11-07
Sometimes tooltip flicker 1 2022-10-12 2022-12-01
worker-1.0.0-rc.1.tgz: 1 vulnerabilities (highest severity is: 5.3) 0 2022-07-17 2022-09-19
Audio mute/unmute 8 2021-03-25 2022-01-20
error: the target 'SwiftSyntax' in product 'SwiftSyntax' contains unsafe build flags 4 2022-03-16 2022-08-13
Investigate and accommodate the possibility of a missing URI 0 2021-02-04 2022-11-14
InventoryFile appears to be equipped to handle an empty dispname 0 2021-02-08 2022-11-14
Compatible with latest mac os? 2 2022-11-26 2022-12-07
Remove UAC no prompt from 'low security' 1 2021-04-09 2022-07-15
Change default path for NextCloud 1 2022-10-18 2022-11-14
Show more example of outputs in docs 3 2021-05-26 2022-11-17
Enhancement in IS prediction 1 2021-05-23 2022-11-17
Implement sorter for Shopware 28 2021-10-21 2022-12-09
Recording button not available post database restore from old version 3 2021-07-02 2022-09-27
StoreAPI wc/store/cart returns address with empty state 2 2021-11-12 2022-11-17
"The representation must have the syntax of a NativeFunction" is ambiguous 7 2021-08-13 2022-10-30
[1.x] Question about mvideoroom demo javascript code 8 2022-03-27 2022-10-02
Error when installing and using the GlobalEnergyGIS package--$50 via venmo 1 2022-06-26 2022-07-30
Duplicate keywords 0 2021-03-29 2021-12-07
Nil pointer dereference when Interceptors is nil 0 2022-03-17 2022-10-10
[btdb] Found no results while trying to browse this tracker (Test) 4 2021-08-27 2022-12-08
[Feature] Read only mode 5 2021-07-30 2022-09-14
When is the next release scheduled? 4 2021-04-02 2022-11-05
[Improve] rename the manager-client-test to manager-client-example 0 2022-04-02 2022-07-24
Cant access monica server 2 2022-01-17 2022-11-24
terser mangled my optional chaining operator 6 2021-07-30 2022-11-23
Set image brightness, contrast, saturation and hue by using vips 7 2020-09-17 2022-11-04
Account recovery request 3 2021-10-07 2022-12-09
no such table on iOS 1 2022-06-08 2022-11-13
WiFi.getNetworkinfo always returns channel 0 4 2022-03-17 2022-11-13
Turn a quote into code block in Create RPG game project 6 2022-09-29 2022-09-24
Add make 3.82 0 2020-09-14 2022-01-11
Static expiry for confirmation request 1 2021-03-01 2022-11-13
[BUG]ms-server和ms-data-streaming的/app/lib下还存在log4j-2.14、dubbo2.7.9的包,依然存在漏洞 5 2022-01-14 2022-10-02
Deployment keys are empty appcenter cli 1 2021-05-12 2022-12-09
ZHA - "'OnOffChannel' object has no attribute '_state'" 1 2022-07-27 2022-12-05
[ENH] transformer reconcilers - further work 1 2022-04-08 2022-11-04
Source files mysteriously no longer found after update from 2.10.2 to 2.10.3 4 2022-09-01 2022-11-23
[Hint Hotkeys]The keys "H" and "G" don't work 0 2019-06-01 2022-09-30
Missing method exceptions when running tests in a netcore31 assembly, which uses its own netstandard2.0 assembly loader 0 2021-05-22 2022-10-18
Explore how to make `StandardBeanExpressionResolver` not reachable in AOT mode 0 2022-11-22 2022-11-28