Svelte component data params not parsed over HTML

If we need to pass any data params on component then it will not passed to parsed HTML, for example I want to add background on Block component with lazy load then I have to compulsory used div with class block instead of Block component.

If we pass data element on Block component and it will parsed over html then lazy load will work without used of div.

For example: In svelte code it will not work( caused of our data params data-background would not parse when svelte to HTML parsing done)

<Block class="lazy" data-background="<image path>">

In core code:(working)

<div class="block lazy" data-background="<image path>" >

This feature just recently became available in Svelte, so will be in next update

1 Like

Thank now external data element is also work…