Skip to content

"Link type "icon"" should be able to point to an <svg> or <canvas> #661

@zcorpan

Description

@zcorpan

https://html.spec.whatwg.org/multipage/semantics.html#rel-icon

Link type "icon"

Some sites use a canvas and then update the <link rel=icon>'s href to the canvas's toDataURL(), e.g. to implement an animated icon or to show how many unread messages there are.

I discussed with @fsoder in the context of supporting SVG favicons in Chromium and it seems like it would be better to be able to link to an in-document svg or canvas element directly for those use cases. Round-tripping via a data: URL is basically unnecessary overhead in principle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    addition/proposalNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions