svg symbol id fails with percent-encoded symbols
Bug #1737778 reported by
Erik Demaine
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Attached is a simple example of SVG that uses percent-encoded symbols in a <symbol id>. Inkscape ignores the object upon import. Changing the <symbol id> (and corresponding <use xlink:href>) to an ASCII string like "space" causes the example to work (produce a black square in the middle of the canvas).
I was originally using 0.91.1, but tested again on 0.92.2 and found the same behavior.
As far as I can tell, <symbol id>s should follow the IRI spec of https:/
tags: |
added: symbols removed: svg |
To post a comment you must log in.
Nope, that's not valid. Browsers also don't render the file. That's because /www.w3. org/TR/ SVG2/struct. html#Core. attrib) and https:/ /www.w3. org/TR/ xml/#NT- Name lists the allowed characters for the first and subsequent letters of an ID.
Additional requirements apply in order for the ‘id’ attribute to be valid in XML documents, as defined in the specification for the relevant version of XML. A stand-alone SVG document uses XML 1.0 syntax [xml], which specifies that valid ‘id’ values are XML name tokens (https:/
The % sign is U+0025, and can not be included in an ID.
Please reopen at http:// inkscape. org/report if you encounter similar issues.
Closed by https:/ /gitlab. com/jhofinger