Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • librsvg librsvg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 190
    • Issues 190
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • librsvglibrsvg
  • Issues
  • #836

Closed
Open
Created Jan 19, 2022 by Federico Mena Quintero@federicoMaintainer

Allow <use> without a fragment ID

SVG2 made it possible to have <use href="child-image.svg"/> without a #fragment - in this case the whole document is used as the object to render:

New in SVG 2. An ‘href’ without a fragment allows an entire SVG document to be referenced without having to ensure that it has an ID on its root element.

Librsvg doesn't support this yet.

The implementation of <use> has a NodeId to represent the href (place where it is parsed). NodeId only allows references with a fragment id, such as foo.svg#some_id or just #some_id. But for example, the implementation of feImage uses a plain String, and later decides what to do with it. The way <use> should work is slightly different, but the principle stands.

Since NodeId means a reference to a specific node by its ID (in the present document or in another one), it may be good to have an extra type to represent a reference to a toplevel document or to a document plus id.

Edited Jan 19, 2022 by Federico Mena Quintero
Assignee
Assign to
Time tracking