code: function ItemEventsHandler_setAriaSelected(itemElement, isSelected) {
                      var ariaSelected = (itemElement.getAttribute("aria-selected") === "true");
  
                      if (isSelected !== ariaSelected) {
                          itemElement.setAttribute("aria-selected", isSelected);
                      }
                  }
docs: Avoids unnecessary UIA selection events by only updating aria-selected if it has changed