Skip to content

Commit

Permalink
do not attach SSR <head> markers to <title> (sveltejs#4310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Jan 23, 2020
1 parent e959dbc commit c6c6316
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/compiler/compile/render_ssr/handlers/Title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { x } from 'code-red';
export default function(node: Title, renderer: Renderer, options: RenderOptions) {
renderer.push();

renderer.add_string('<title');
if (options.hydratable && options.head_id) {
renderer.add_string(` data-svelte="${options.head_id}"`);
}
renderer.add_string('>');
renderer.add_string(`<title>`);

renderer.render(node.children, options);

Expand Down

0 comments on commit c6c6316

Please sign in to comment.