The aria-live attribute is added to an element in the document by a script after the onload event completes with the value="polite" and the element has a child DOM element node that contains text content. After the aria-live attribute is added, the CSS 'display' property of the child DOM element node is changed to display="none".