Unkown element svg:foreignObject

It is possible to use other SVG elements with namespace prefix, but foreingObject.


WebStorm 2020.1.1

0
9 comments

Please could you share a file/complete code snippet the issue can be reproduced with?

0

it works fine for me if the code is enclosed in

<svg xmlns:svg="http://www.w3.org/2000/svg"></svg>

 

and doesn't work otherwise

0

Hi, Elena. The similar issue with `markerUnits`, `patternUnits`, `patternContentUnits` attributes.

<svg:marker
xmlns:svg="http://www.w3.org/2000/svg"
markerUnits="userSpaceOnUse"
viewBox="0 0 10 10"
/>

<svg:pattern
xmlns:svg="http://www.w3.org/2000/svg"
patternContentUnits="userSpaceOnUse"
patternUnits="userSpaceOnUse"
/>

But it works fine without namespace.

0

`Ctrl + Click` on CSS class name and class name auto-completing don't work if svg element has a namespace prefix.

0

Thank you, Elena. What is about auto-completing and navigating to CSS class names by `Ctrl + Click`?

0

Please sign in to leave a comment.