I fixed the first issue by changing the "ul" tag to a "div" and removing the "taglist" and "aria-orientation" attributes. I think Esri uses a lot of generic code that doesn't always fit the circumstances, because there was no "li" element children so why use the "ul" tag in the first place?