Skip to content

<link rel="apple-touch-icon"> failed to parse attribute value: variant not found #91

@jonfk

Description

@jonfk

i am trying to add an apple favicon with the following:

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>

But I am getting the following error at runtime.

ERROR: <link rel="apple-touch-icon"> failed to parse attribute value: Matching variant not found
ERROR: rebuild with nightly to print source location
thread 'main' panicked at 'failed to parse string literal', src/view.rs:4:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

From what I understand, it's trying to build a LinkType for the rel attribute of the link element and since apple-touch-icon isn't a valid variant of LinkType it's failing.

Is there an escape hatch where I can put custom attributes or attribute values so that I can bypass this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions