mirror of https://github.com/sveltejs/svelte
fix: don't apply scoped CSS class to elements inside <svelte:head> (#18160)
skip elements inside head, they should not get hashes --------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>pull/18690/head
parent
2ac7366391
commit
63b4c3652d
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: never apply class hash to elements inside `<svelte:head>`
|
||||
@ -0,0 +1 @@
|
||||
<meta name="author" content="Re:Designed"> <link rel="author" href="https://example.com"> <script type="application/ld+json"></script>
|
||||
@ -0,0 +1,11 @@
|
||||
<svelte:head>
|
||||
<meta name="author" content="Re:Designed" />
|
||||
<link rel="author" href="https://example.com" />
|
||||
<script type="application/ld+json"></script>
|
||||
</svelte:head>
|
||||
|
||||
<div>dummy</div>
|
||||
|
||||
<style>
|
||||
* { color: red }
|
||||
</style>
|
||||
Loading…
Reference in new issue