Skip to content

LinkTo and Input don't support arbitrary attributes in <3.10 #120

@elwayman02

Description

@elwayman02

The built-in LinkTo component provided by this polyfill doesn't pass through arbitrary attributes. For example:

<LinkTo @route='/' data-some-attribute>Index</LinkTo>

renders as

<a href="/">Index</a>

but should be

<a href="/" data-some-attribute="">Index</a>

The polyfill rewrites LinkTo to curly invocation but doesn't put the arbitrary attributes anyway.

The same thing is true for <Input>. Both of these built-ins allow arbitrary attributes in 3.10+, but the polyfill did not maintain that support.

To solve this, we need a similar approach to the Component runtime polyfill (that runs for <2.12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions