Unkown element svg:foreignObject

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


WebStorm 2020.1.1

9 comments
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

Submitted as https://youtrack.jetbrains.com/issue/WEB-45429, please feel free to vote for it

0
Comment actions Permalink

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.