embed tag causing error in console

436 Views Asked by At

I have an embed tag displaying a SVG: <embed src="/img/mysvg.svg" style="max-width: 100%">

It's causing an error in the console: Console Error

When I comment out the embed tag the error goes away. Any ideas why this is happening?

I don't think it should be a factor but it's also inside a blade in a Laravel project

I get the same error in Safari except it's in kwift.SAFARI.min.js:1

1

There are 1 best solutions below

5
On

why you use embed tag , Chrome Dev tool thinks is wrong , actuality it is not wrong in HTML , but better use img tag

<img src="/img/mysvg.svg" style="max-width: 100%"/>