Check for the existence of the `open property` on each details element and set `aria-` values appropriately. Only alter the `display` property if the content is hidden.
Check for the existence of the `open property` on each details element and set `aria-` values appropriately. Only alter the `display` property if the content is hidden.

TFOH/govuk_elements,alphagov/govuk_elements,alphagov/govuk_elements,gavboulton/govuk_elements,gavboulton/govuk_elements,alphagov/govuk_elements,gavboulton/govuk_elements,joelanman/govuk_elements,joelanman/govuk_elements,TFOH/govuk_elements,alphagov/govuk_elements,gavboulton/govuk_elements