PhpStorm complains about so many HTML-tags and attributes - it's annoying!

When copying the HTML code of a website into a test.html in phpstorm, there are some questionable warnings, especially, when it comes to SVG, like:

- "feDropShadow" HtmlTag not known

- "width" and "Height" attribute are  according to phpstorm - not allowed on a <symbol> tag (But.... they actually are, see link below):

It does NOT complain, when:

- a symbol has a "xmlns" attr (which is not listed as allowed not core attr in -> see link below)

Maybe there are even more...

What is going on here? Is phpStorm responsible for validating? Or is it an external library?
Should really be fixed...

Link to MDN
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol

10 comments
Comment actions Permalink

Please can you provide HTML code that shows up the issues?

Related tickets: https://youtrack.jetbrains.com/issue/WEB-36686, https://youtrack.jetbrains.com/issue/WEB-36685

-1
Avatar
Permanently deleted user
Comment actions Permalink

Are you core dev?

-1
Comment actions Permalink

I'm a support engineer

0
Avatar
Permanently deleted user
Comment actions Permalink

Well, I would say since this is not an open source project, but one that has to be paid for, and the HTML is really, really dead simple and can be easily recreated, I will not do the extra work an fulfill that request. There has to be difference between open source and a paid project. 

And - to be honest: I really find it like kindergarden that sample code is asked for in the simplest of simplest cases. The description is very clear. And if the product owners care about their product, they will deal with this problem to their likings.

But I will not support lazyness AND pay.

-2
Comment actions Permalink

Confirm not working:

<svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<symbol id="myDot" width="10" height="10" viewBox="0 0 10 10">
<circle cx="5" cy="5" r="5" fill="black" stroke="none" />
</symbol>
<use href="url(#myDot)" x="0" y="0" width="10" height="10"/>
</svg>
0
Comment actions Permalink

@..., IntelliJ products are free for educational and/or non-profit usage, which makes them open source. Besides, buying a product which doesn't do what you expect it to is far from the manufacturer's fault. You should have checked before you bought it. 

Just so we're clear, I'm not affiliated with IntelliJ in any way.

0
Avatar
Permanently deleted user
Comment actions Permalink

Arhicub Haha! You reacted really really fast!!! You should have checked the date of the post and not waste your time on my comments. But, well, i guess that's your fault.

0
Comment actions Permalink

@..., glad I made you smile, man. That's never a waste.

I hope you're no longer as upset as you sounded in your previous comments. Another thing you could do (until PhpStorm updates their tags + attributes list) is add the tags/attributes to custom ones, so they are no longer flagged.

Cheers!

0
Avatar
Permanently deleted user
Comment actions Permalink

Arhicub True and granted – a smile is never a waste of time! And so is changing IDEs and cleaning up old accounts. Have a good one!

0
Comment actions Permalink

Thanks for the laugh 😂

0

Please sign in to leave a comment.