Comments (1)
I was thinking about this a bit. I already factored this out into generator.createAnchor
.
The changes needed are a bit complex though.
- The previous sibling needs to know if the next sibling is a static element or not to avoid creating an anchor.
- And the next sibling needs to know that is actually needs to create an identifier (see
needsIdentifier
ofgenerator.addElement
).
I would have to read through your snippet
code to understand how it works, maybe it can be leveraged to do something like this.
from svelte.
Related Issues (20)
- Svelte 5: Hydration fails when SvelteKit app is run as a dependency
- Svelte 5: compile-time variable HOT 4
- Svelte5: reactive Set constructor not working correctly HOT 13
- Svelte 5: Specify (and enforce) special `<svelte:*>` tag void-ness HOT 2
- svelte 5 accessors broken after [email protected]
- Svelte 5: `{#each expression as name (key)}` behaves differently than Svelte 4 HOT 8
- How to unproxy a $prop? HOT 2
- Svelte 5: updating `$state` array with `.push()` breaks when we first update by spreading HOT 1
- Svelte 5 bindable not working local HOT 2
- Svelte code with many function calls crashes on Webkit HOT 4
- svelte 5: script tag onload no used
- svelte 5: Script tag not call load funciton
- svelte 5 : script tag does not calll load HOT 1
- Discriminating union does not work in template HOT 2
- Svelte 5: Creating snippets in `.svelte.js` / `.svelte.ts` files HOT 3
- Svelte 5: mixing and matching old and new events is buggy HOT 2
- Svelte 5: you can mount a snippet
- Svelte 5 Bug - spreading value and oninput props make snippet disappear on input change
- Svelte 5: (non-state-reference) `moduleVariable` is updated, but is not declared with $state(...)... HOT 1
- Svelte 5: Adding a delay param to svelte transitions causes the node to immediately appear for the duration of the delay HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.