Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/zen-surf-33vcdj?file=%2Fpages%2Findex.tsx%3A2%2C46
To Reproduce
- Open code sandbox
- Check out the DOM and find the
img element.
- See how it has unsupported attributes
- Check out build console where React is warning about it
Current vs. Expected behavior
There should be no unsupported attributes added to the IMG tag
Verify canary release
Provide environment information
Whatever CodeSandbox uses. I'm on Mac M1 but it doesn't matter since it's not related to the environment but React code.
Which area(s) are affected? (Select all that apply)
Image optimization (next/image, next/legacy/image)
Additional context
It's been around since next@12 initial next/image I believe.
Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/zen-surf-33vcdj?file=%2Fpages%2Findex.tsx%3A2%2C46
To Reproduce
imgelement.Current vs. Expected behavior
There should be no unsupported attributes added to the IMG tag
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Image optimization (next/image, next/legacy/image)
Additional context
It's been around since next@12 initial next/image I believe.