mirror of https://github.com/sveltejs/svelte
fix: bail-out of hydrating head if no anchor is found (#12541)
* fix: bail-out of hydrating head if no anchor is found * add failing test * fix * fix comment --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/12544/head
parent
5253c8f8ff
commit
346cf96599
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: bail-out of hydrating head if no anchor is found
|
@ -0,0 +1,7 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
test(assert, target, snapshot, component, window) {
|
||||||
|
assert.equal(window.document.querySelectorAll('meta').length, 2);
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
<meta name="description" content="some description"> <meta name="keywords" content="some keywords">
|
@ -0,0 +1,6 @@
|
|||||||
|
<svelte:head>
|
||||||
|
<meta name="description" content="some description" />
|
||||||
|
<meta name="keywords" content="some keywords" />
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<div>Just a dummy page.</div>
|
Loading…
Reference in new issue