jquery/jquery-ui — pull request #704 by larowlan (2012-07-18 01:08:21+00:00)
Title: Fixes for #7862 - dialog accessibility

a11y changes as follows:
Modal dialogs have an internal wrapper with role=document to sandbox a11y users to the modal
Non-modal dialogs don't get role=dialog
Refocussing window whilst modal dialog is active returns focus to first tabbable element in modal dialog.
.dialog('open') method takes second optional argument 'triggerEl' when present focus is returned to this element when dialog is closed.
Accessibility consultant Everett Zufelt has reviewed these changes.