kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.33k stars 5.88k forks source link

Slick-Cloned adding empty ids that are flagged on W3C validation & parsing reports #4288

Open Darren404 opened 4 months ago

Darren404 commented 4 months ago

Hi, Not sure if this is the right place to ask this but we are using slick with slick cloned to have an infinitely scrolling section where items are repeated. The opener of each div in the code when inspected in the browser is rendering like this when it is cloned...

<div class="slick-slide slick-cloned" data-slick-index="4" id="" aria-hidden="true" tabindex="-1">

Using the W3C Nu HTML Checker via the bookmarklet shows these empty IDs are being flagged as errors due to duplication. Is this a know issue with a fix or something not raised before? Is there a way to stop it generating IDs completely?

Thanks