Inkscape puts the element grid in the wrong spot in the SVG file causing SVG errors

Bug #1210701 reported by Kelvin Song
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

When scanning Inkscape-generated SVGs with W3C SVG validator (http://validator.w3.org/), it almost always returns the error 'Inkscape element grid not allowed as child of Sodipodi element namedview in this context. (Suppressing further errors from this subtree.)'.

For example—http://validator.w3.org/check?uri=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F7%2F72%2FInto_the_stele.svg&charset=%28detect+automatically%29&doctype=Inline&group=0

Or—http://validator.w3.org/check?uri=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Farchive%2F4%2F44%2F20130810011535!Grassy_grass_plant.svg&charset=%28detect+automatically%29&doctype=Inline&group=0

This is easy to fix in a text editor—just cut the inkscape:grid element and paste it at the end of the document, right before the </svg> tag.

I am using the latest inkscape-trunk PPA.

Tags: grids svg
jazzynico (jazzynico)
tags: added: svg
Revision history for this message
Valerio Bozzolan (bozzy) wrote :

I can reproduce on Inkscape 0.92.5 (2060ec1f9f, 2020-04-08).

Revision history for this message
Valerio Bozzolan (bozzy) wrote :

The solution is to Save As "Optimized SVG" but then this is a related bug in Ubuntu:

https://bugs.launchpad.net/inkscape/+bug/1786724

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.