The HTMLOutputElement.labels read-only property returns a NodeList of the elements associated with the element.
HTMLOutputElement.labels
MDN Reference