Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

javacript:history.back() is not a valid href attribute (lie!) #1736

Closed
mikeoptics opened this issue Mar 5, 2021 · 2 comments
Closed

javacript:history.back() is not a valid href attribute (lie!) #1736

mikeoptics opened this issue Mar 5, 2021 · 2 comments

Comments

@mikeoptics
Copy link

Describe the bug
<a href="javascript:history.back()" class="underline">homepage</a>
causes a console error:
A11y: 'javascript:history.back()' is not a valid href attribute

But it is valid as its used to go back.

To Reproduce
See Here

Expected behavior
No error.

Information about your Sapper Installation:

Not relevant as it can be reproduced in REPL

Severity
Not even slightly

Additional context
Not just sapper but svelte too.

@Conduitry
Copy link
Member

Conduitry commented Mar 5, 2021

This was specifically added in sveltejs/svelte#4733. That's not to say this won't be reconsidered, but at one point this was considered a feature and not a bug.

@mikeoptics
Copy link
Author

How ironic. I get it though and Il try using a11y ignore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants