-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ssr): fix adjacent text node concatenation (#4974)
Co-authored-by: Will Harney <[email protected]> Co-authored-by: John Hefferman <[email protected]>
- Loading branch information
1 parent
358d89b
commit 19b11e4
Showing
137 changed files
with
380 additions
and
43 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...xt-nodes/preserve-comments-off/comments-at-end/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,3 @@ | ||
<template> | ||
<span>{foo}{bar}{baz}{foo}{bar}{baz}{foo}{bar}{baz}<!--lala--><!--hahaha--><!--yolo--></span> | ||
</template> |
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...__/fixtures/adjacent-text-nodes/preserve-comments-off/comments-then-element/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"> | ||
<span> | ||
| ||
<div> | ||
</div> | ||
</span> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...es/preserve-comments-off/comments-then-element/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,3 @@ | ||
<template> | ||
<span>{foo}{bar}{baz}<!--a--><!--b--><!--c--><div></div></span> | ||
</template> |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...erver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/deep/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<div> | ||
abc | ||
</div> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...adjacent-text-nodes/preserve-comments-off/deep/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> | ||
<div> | ||
a | ||
<template if:true={isTrue}> | ||
b | ||
</template> | ||
c | ||
</div> | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...s/adjacent-text-nodes/preserve-comments-off/deep/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 { | ||
isTrue = true; | ||
} |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...rver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/deep2/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> |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...djacent-text-nodes/preserve-comments-off/deep2/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 if:true={isTrue}> | ||
b | ||
<div>c</div> | ||
d | ||
</template> | ||
e | ||
</template> |
5 changes: 5 additions & 0 deletions
5
.../adjacent-text-nodes/preserve-comments-off/deep2/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 { | ||
isTrue = true; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...acent-text-nodes/preserve-comments-off/emptier/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,3 @@ | ||
<template> | ||
<span>{foo}{bar}{baz}{foo}{bar}{baz}{foo}{bar}{baz}</span> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...djacent-text-nodes/preserve-comments-off/emptier/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
.../adjacent-text-nodes/preserve-comments-off/empty/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...ver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/empty2/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
| ||
</span> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...ver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/empty3/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
| ||
</span> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...s__/fixtures/adjacent-text-nodes/preserve-comments-off/html-escaping-single/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
&minus; | ||
</span> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...des/preserve-comments-off/html-escaping-single/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,3 @@ | ||
<template> | ||
<span>{foo}</span> | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...nodes/preserve-comments-off/html-escaping-single/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 { | ||
foo = '−'; | ||
} |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
.../__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/html-escaping/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
&minus; | ||
</span> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...t-text-nodes/preserve-comments-off/html-escaping/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = '&'; | ||
bar = 'minus'; | ||
baz = ';'; | ||
} |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
.../__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/just-comments/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,6 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
</span> | ||
</template> | ||
</x-comments-text> |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...text-nodes/preserve-comments-off/just-comments/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,3 @@ | ||
<template> | ||
<span><!--a--><!--b--><!--c--></span> | ||
</template> |
3 changes: 3 additions & 0 deletions
3
...t-text-nodes/preserve-comments-off/just-comments/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,3 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement {} |
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...rc/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/nonempty-dynamic/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'; |
3 changes: 3 additions & 0 deletions
3
...t-nodes/preserve-comments-off/nonempty-dynamic/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,3 @@ | ||
<template> | ||
<span>{foo}{bar}{baz}</span> | ||
</template> |
File renamed without changes.
Empty file.
7 changes: 7 additions & 0 deletions
7
...ixtures/adjacent-text-nodes/preserve-comments-off/nonempty-literals-outside/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
totoyolototoyolo | ||
</span> | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...s__/fixtures/adjacent-text-nodes/preserve-comments-off/nonempty-literals-outside/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'; |
3 changes: 3 additions & 0 deletions
3
...reserve-comments-off/nonempty-literals-outside/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,3 @@ | ||
<template> | ||
<span>toto{foo}yolo{bar}toto{baz}yolo</span> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
.../preserve-comments-off/nonempty-literals-outside/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...server/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/nonempty/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'; |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...jacent-text-nodes/preserve-comments-off/nonempty/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...erver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/nonempty1/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'; |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...erver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/nonempty2/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'; |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...erver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-off/nonempty3/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'; |
File renamed without changes.
File renamed without changes.
Empty file.
7 changes: 7 additions & 0 deletions
7
...ixtures/adjacent-text-nodes/preserve-comments-off/text-comment-text-comment/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,7 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
| ||
</span> | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...s__/fixtures/adjacent-text-nodes/preserve-comments-off/text-comment-text-comment/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'; |
3 changes: 3 additions & 0 deletions
3
...reserve-comments-off/text-comment-text-comment/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,3 @@ | ||
<template> | ||
<span><!--a-->{foo}<!--b-->{bar}<!--c-->{baz}<!--d-->{foo}<!--e--></span> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
.../preserve-comments-off/text-comment-text-comment/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
Empty file.
12 changes: 12 additions & 0 deletions
12
...s__/fixtures/adjacent-text-nodes/preserve-comments-on/comments-then-element/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,12 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
| ||
<!--a--> | ||
<!--b--> | ||
<!--c--> | ||
<div> | ||
</div> | ||
</span> | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
..._tests__/fixtures/adjacent-text-nodes/preserve-comments-on/comments-then-element/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'; |
3 changes: 3 additions & 0 deletions
3
...des/preserve-comments-on/comments-then-element/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,3 @@ | ||
<template lwc:preserve-comments> | ||
<span>{foo}{bar}{baz}<!--a--><!--b--><!--c--><div></div></span> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...nodes/preserve-comments-on/comments-then-element/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
Empty file.
15 changes: 15 additions & 0 deletions
15
...res/adjacent-text-nodes/preserve-comments-on/emptier-with-text-comment-text/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,15 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
<!--a--> | ||
| ||
<!--b--> | ||
| ||
<!--c--> | ||
| ||
<!--d--> | ||
| ||
<!--e--> | ||
</span> | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...fixtures/adjacent-text-nodes/preserve-comments-on/emptier-with-text-comment-text/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'; |
3 changes: 3 additions & 0 deletions
3
...rve-comments-on/emptier-with-text-comment-text/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,3 @@ | ||
<template lwc:preserve-comments> | ||
<span><!--a-->{foo}<!--b-->{bar}<!--c-->{baz}<!--d-->{foo}<!--e--></span> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...serve-comments-on/emptier-with-text-comment-text/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
Empty file.
10 changes: 10 additions & 0 deletions
10
...ver/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/emptier/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,10 @@ | ||
<x-comments-text> | ||
<template shadowrootmode="open"> | ||
<span> | ||
| ||
<!--lala--> | ||
<!--hahaha--> | ||
<!--yolo--> | ||
</span> | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...e-server/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/emptier/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'; |
3 changes: 3 additions & 0 deletions
3
...jacent-text-nodes/preserve-comments-on/emptier/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,3 @@ | ||
<template lwc:preserve-comments> | ||
<span>{foo}{bar}{baz}{foo}{bar}{baz}{foo}{bar}{baz}<!--lala--><!--hahaha--><!--yolo--></span> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...adjacent-text-nodes/preserve-comments-on/emptier/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,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement { | ||
foo = ''; | ||
bar = undefined; | ||
baz = null; | ||
} |
Empty file.
9 changes: 9 additions & 0 deletions
9
...c/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/just-comments/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"> | ||
<span> | ||
<!--a--> | ||
<!--b--> | ||
<!--c--> | ||
</span> | ||
</template> | ||
</x-comments-text> |
3 changes: 3 additions & 0 deletions
3
...er/src/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/just-comments/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'; |
3 changes: 3 additions & 0 deletions
3
...-text-nodes/preserve-comments-on/just-comments/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,3 @@ | ||
<template lwc:preserve-comments> | ||
<span><!--a--><!--b--><!--c--></span> | ||
</template> |
3 changes: 3 additions & 0 deletions
3
...nt-text-nodes/preserve-comments-on/just-comments/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,3 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement {} |
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...rc/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/preserve-comments/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'; |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...c/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/preserve-comments2/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'; |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...c/__tests__/fixtures/adjacent-text-nodes/preserve-comments-on/preserve-comments3/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'; |
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.