mirror of https://github.com/sveltejs/svelte
fix: coerce nullish `<title>` to empty string (#16863)
parent
e0dba165b4
commit
8895bd44f5
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: coerce nullish `<title>` to empty string
|
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
test({ assert, target }) {
|
||||
assert.equal(target.ownerDocument.title, '');
|
||||
}
|
||||
});
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
const thing = {};
|
||||
</script>
|
||||
<svelte:head>
|
||||
<title>{thing.thing}</title>
|
||||
</svelte:head>
|
Loading…
Reference in new issue