-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: optimize scoped ID for light/native (#4399)
- Loading branch information
1 parent
d7147ce
commit 750f557
Showing
49 changed files
with
4,605 additions
and
90 deletions.
There are no files selected for viewing
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
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
13 changes: 13 additions & 0 deletions
13
...arma/test/synthetic-shadow/scoped-id/x/hrefDynamicEmptyString/hrefDynamicEmptyString.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,13 @@ | ||
<template> | ||
<div class="sanjo" id={emptyString}></div> | ||
|
||
<div> | ||
<a class="anchor-empty-string" href={emptyString} data-id={emptyString}>fragment url</a> | ||
</div> | ||
|
||
<div> | ||
<map name="blackdot"> | ||
<area class="area-empty-string" href={emptyString} data-id={emptyString} shape="circle" coords="75,75,75" /> | ||
</map> | ||
</div> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...-karma/test/synthetic-shadow/scoped-id/x/hrefDynamicEmptyString/hrefDynamicEmptyString.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 HrefDynamicEmptyString extends LightningElement { | ||
get emptyString() { | ||
return ''; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../integration-karma/test/synthetic-shadow/scoped-id/x/hrefDynamicNull/hrefDynamicNull.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,13 @@ | ||
<template> | ||
<div class="sanjo" id={nullo}></div> | ||
|
||
<div> | ||
<a class="anchor-empty-string" href={nullo} data-id={nullo}>fragment url</a> | ||
</div> | ||
|
||
<div> | ||
<map name="blackdot"> | ||
<area class="area-empty-string" href={nullo} data-id={nullo} shape="circle" coords="75,75,75" /> | ||
</map> | ||
</div> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...wc/integration-karma/test/synthetic-shadow/scoped-id/x/hrefDynamicNull/hrefDynamicNull.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 HrefDynamicNull extends LightningElement { | ||
get nullo() { | ||
return null; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...on-karma/test/synthetic-shadow/scoped-id/x/hrefDynamicUndefined/hrefDynamicUndefined.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,13 @@ | ||
<template> | ||
<div class="sanjo" id={undef}></div> | ||
|
||
<div> | ||
<a class="anchor-empty-string" href={undef} data-id={undef}>fragment url</a> | ||
</div> | ||
|
||
<div> | ||
<map name="blackdot"> | ||
<area class="area-empty-string" href={undef} data-id={undef} shape="circle" coords="75,75,75" /> | ||
</map> | ||
</div> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...tion-karma/test/synthetic-shadow/scoped-id/x/hrefDynamicUndefined/hrefDynamicUndefined.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 HrefDynamicUndefined extends LightningElement { | ||
get undef() { | ||
return undefined; | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...compiler/src/__tests__/fixtures/scoped-id-optimization/static-optimized/light/actual.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 @@ | ||
<template lwc:render-mode="light"> | ||
<!-- static values --> | ||
<label for="foo">Click me:</label> | ||
<input type="checkbox" id="foo"> | ||
|
||
<a href="#bar">Click to scroll</a> | ||
<section id="bar">Scroll to me</section> | ||
|
||
<!-- dynamic values --> | ||
<label for={foo}>Click me:</label> | ||
<input type="checkbox" id={foo}> | ||
|
||
<a href={bar}>Click to scroll</a> | ||
<section id={bar}>Scroll to me</section> | ||
</template> |
Oops, something went wrong.