Skip to content

Commit 525bc28

Browse files
committed
failing test
1 parent 47f20b1 commit 525bc28

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script>
2+
const message = `call +636-555-3226 now`;
3+
</script>
4+
5+
<hr />
6+
{message}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { test } from '../../test';
2+
3+
export default test({
4+
expect_hydration_error: true
5+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!--[--><hr> call <a href="tel:+636-555-3226">+636-555-3226</a> now<!----> <p>42</p><!--]-->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script>
2+
import Child from './Child.svelte';
3+
</script>
4+
5+
<Child />
6+
<p>{40 + 2}</p>

playgrounds/demo/ssr-dev.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ polka()
2727

2828
const html = transformed_template
2929
.replace(`<!--ssr-head-->`, head)
30-
.replace(`<!--ssr-body-->`, body);
30+
.replace(`<!--ssr-body-->`, body)
31+
// check that Safari doesn't break hydration
32+
.replaceAll('+636-555-3226', '<a href="tel:+636-555-3226">+636-555-3226</a>');
3133

3234
res.writeHead(200, { 'Content-Type': 'text/html' }).end(html);
3335
})

0 commit comments

Comments
 (0)