ES2015 accessible modal window system, using ARIA
Fix CSS namespacing generation for close button text and image.
Attribute data-modal-describedby-id
: adds aria-describedby=<the value of this attribute>
to the dialog
tag
If you need to apply hide/show script to <div id="newContent">your modal launcher source</div>
do use:
van11yAccessibleModalWindowAria(document.getElementById('newContent'));
Updated documentation
Fix bug when button is composed with an image (or any child), as kindly reported in #2