Currently the library assumes the first element inside the array from querySelectorAll is the element wanting to be searched through. However to complete #3 this needs to change. If the query string provided was .tabs and there are three .tabs divs on the page, with each one having the data-micro="tabs" attribute all of these need to be processed, otherwise each one would need to be given an ID and then called via that selector.
Currently the library assumes the first element inside the array from querySelectorAll is the element wanting to be searched through. However to complete #3 this needs to change. If the query string provided was
.tabs
and there are three.tabs
divs on the page, with each one having thedata-micro="tabs"
attribute all of these need to be processed, otherwise each one would need to be given an ID and then called via that selector.