No way to create root-level <title> element
Bug #254857 reported by
codedread
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
codedread |
Bug Description
From the SVG spec [1]:
"Authors should always provide a 'title' child element to the outermost 'svg' element within a stand-alone SVG document."
Now that title and desc are editable via the Object Properties dialog, it seems appropriate that the author should be able to set the document's title. At the moment I do not see a way to do this.
File > Document Metadata > Title sets the title element within the metadata rdf.
[1] http://
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think the RDF document title and description ought to be kept in sync with top-level 'title' and 'desc' elements, because they have the same meaning.
Keeping them in sync all the time may be a bit awkward, as it would mean that they need to be synced when a document is opened, and kept in sync if the user edits one or other with the XML editor. There's also the question of what to do if a document specifies a title in both SVG and RDF, and the two titles are different. But we should at least ensure that setting a title or description in the Document Metadata dialog results in a top-level 'title' or 'desc' element, as well as the 'dc:title' or 'dc:description' element that is currently used, and that would be enough to fix this bug.