-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ssr): adjacent text in
<template>
s (#4984)
Co-authored-by: Will Harney <[email protected]> Co-authored-by: John Hefferman <[email protected]>
- Loading branch information
1 parent
85b854e
commit 88e9bdf
Showing
19 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
Empty file.
9 changes: 9 additions & 0 deletions
9
.../adjacent-text-nodes/preserve-comments-off/deep-for-each-with-rendered-item/expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
ab | ||
<div data-foo="1"> | ||
c | ||
</div> | ||
de | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...tures/adjacent-text-nodes/preserve-comments-off/deep-for-each-with-rendered-item/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
9 changes: 9 additions & 0 deletions
9
...-comments-off/deep-for-each-with-rendered-item/modules/x/comments-text/comments-text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
a | ||
<template for:each={items} for:item="item"> | ||
b | ||
<div key={item} data-foo={item}>c</div> | ||
d | ||
</template> | ||
e | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...ve-comments-off/deep-for-each-with-rendered-item/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
items = [1]; | ||
} |
Empty file.
9 changes: 9 additions & 0 deletions
9
.../__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/deep-for-each/expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
ab | ||
<div> | ||
c | ||
</div> | ||
de | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...r/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/deep-for-each/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
9 changes: 9 additions & 0 deletions
9
...text-nodes/preserve-comments-off/deep-for-each/modules/x/comments-text/comments-text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
a | ||
<template for:each={items} for:item="item"> | ||
b | ||
<div key={item}>c</div> | ||
d | ||
</template> | ||
e | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...t-text-nodes/preserve-comments-off/deep-for-each/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
items = [1]; | ||
} |
Empty file.
9 changes: 9 additions & 0 deletions
9
.../__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/deep-iterator/expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
ab | ||
<div> | ||
c | ||
</div> | ||
de | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...r/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/deep-iterator/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const tagName = 'x-comments-text'; | ||
export { default } from 'x/comments-text'; | ||
export * from 'x/comments-text'; |
9 changes: 9 additions & 0 deletions
9
...text-nodes/preserve-comments-off/deep-iterator/modules/x/comments-text/comments-text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
a | ||
<template iterator:it={items}> | ||
b | ||
<div key={it.value}>c</div> | ||
d | ||
</template> | ||
e | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...t-text-nodes/preserve-comments-off/deep-iterator/modules/x/comments-text/comments-text.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
items = [1]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters