Skip to content

sveltekit:prefetch seems to be invalid HTML #3186

Closed
@moritzebeling

Description

@moritzebeling

Describe the problem

Hey, I just validated my SvelteKit website with https://validator.w3.org/nu/ and it heavily complained about sveltekit:prefetch not being valid HTML.

Is this a problem? Maybe if some service wanted to rank the quality of some website, they would use an HTML validator and adjust the ranking accordingly?

Describe the proposed solution

To avoid that, maybe the Svelte compiler could automatically turn such things into a valid HTML attribute like data-sveltekit="prefetch" from where the router can pick it up?

In my imagination this should be fairly easy to implement and would result in valid HTML.

Alternatives considered

No response

Importance

nice to have

Additional Information

Thank you very much for building Svelte!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions