Deprecated HTML tag for SVG image tag

Hello.

I see deprecated HTML tag for the SVG image element while doing development with JSX. And I don't think that it's deprecating https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image How can I get rid of this warning and overstrike syntax?

Best.

P.S: I am using webstorm 2019.2.4

 
0
3 comments

can't reproduce:

please can you share a file/complete code example (as text) the issue can be reproduced with?

0

Nothing special:

import React from 'react';

const BoundingBoxSelector = ({ items }) => (
<g>
{ items.map((item) => (
<g key={ item.cursor }>
<image />
</g>
)) }
</g>
);

export default BoundingBoxSelector;


0

Thanks:) the problem is that the svg tag is not there, and the IDE can't detect the context; please follow https://youtrack.jetbrains.com/issue/WEB-42372 for updates

0

Please sign in to leave a comment.