Skip to content

crossOrigin attribute should be lowercased in rendered #14829

Closed
@upsuper

Description

@upsuper

Do you want to request a feature or report a bug?

A bug.

What is the current behavior?

When using

<img crossOrigin="anonymous"/>

it is rendered as

<img crossOrigin="anonymous">

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

https://jsfiddle.net/upsuper/y9q5fp3t/

What is the expected behavior?

crossOrigin should be lower-cased when rendering.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Latest version.

(This is basically just #14216, but that was closed because HTML attribute name is case-insensitive. However, this is still a problem for SVG, since SVG attribute name is case-sensitive, and thus crossOrigin doesn't work.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions