question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

if I use ul>li instead of div, it works but the html structure is wrong

See original GitHub issue

The ul>li is turned into

ul>div.slick-list>div.slick-track>li

So do I have to use just div?

image

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kyleruscignocommented, Sep 23, 2022

I would like to note this issue is not just semantics, as W3/WAI suggests that carousels should be in a ul > li structure for accessibility reasons https://www.w3.org/WAI/tutorials/carousels/structure/

1reaction
kenwheelercommented, Jan 18, 2015

Is there some actual detriment that is taking place or are you just a staunch purist?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it semantically incorrect to put a <div> or <span> inside of a ...
To clarify this, the question title asks for div or span, the example has just div. So the answers below say div is...
Read more >
Stop using so many divs! An intro to semantic HTML
Doesn't change the structure at all, but you know what it is at a glance rather than needing to read and process the...
Read more >
Handling common HTML and CSS problems - MDN Web Docs
Some problems can be solved by just taking advantage of the natural way in which HTML/CSS work. Unrecognized HTML elements are treated by...
Read more >
Lesson 1: Understanding ID and Class in CSS
In this lesson you will learn how ID and Class attributes can be used to stylize individual elements ... You assign an id...
Read more >
ANDI - Alerts
What should be done? Add HTML markup that will provide an accessible name for the form element. The <label> tag can be used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found