sveltejs / realworld

SvelteKit implementation of the RealWorld app
https://realworld.svelte.dev
MIT License
2.24k stars 353 forks source link

Nested `<a>` elements are invalid #171

Closed wackbyte closed 2 days ago

wackbyte commented 4 months ago

The ArticlePreview component uses <a> to contain the article information, but then uses <a> in the list of tags within. This is invalid HTML,[^1] and is denied in more recent versions of the Svelte compiler (5.0.0-next.36 via sveltejs/svelte#10199).

[^1]: 4.5.1 The a element — "...there must be no...a element descendant..."