Problem rendering SVG's "path" sub-tag in Firefox browser only
Hello! I have a problem drawing a line with SVG which is created using the following tags: <svg>
<path d="..."> </path>
</svg> Maybe there is some special workaround for Firefox but I don't know of any. Here is an example which works fine in google Chrome and IE11 but not in Firefox (I checked from two disparate computers, result was the same). https://just-Chart--raydenfilipp.repl.co
Chosen solution
There is a special workaround for Firefox: Follow the Holly Specification.
You shall not be using commas in your d attribute of line path, use spaces instead.
Read this answer in context 👍 2All Replies (4)
Chosen Solution
There is a special workaround for Firefox: Follow the Holly Specification.
You shall not be using commas in your d attribute of line path, use spaces instead.
TyDraniu said
There is a special workaround for Firefox: Follow the Holly Specification. You shall not be using commas in your d attribute of line path, use spaces instead.
Great-great thanks! I exhausted all efforts trying to find an error. Shouldn't been using 3rd party code without a grain of salt
Apparently, you can use commas between the x and y values but not between the points in the L commands. At least that seemed to be the case for me. Removing the ","s between points made the <path> show, but using them between x and y did not seem to cause a problem.
Modified
Just tried an example <path> with the Q command using commas between the points and it rendered.