diff --git a/src/scripts/go-to-slide.js b/src/scripts/go-to-slide.js index affefb7e..10265baa 100644 --- a/src/scripts/go-to-slide.js +++ b/src/scripts/go-to-slide.js @@ -1,4 +1,4 @@ -import { addClickAndKeyboardListeners } from './utils'; +import { addClickAndKeyboardListeners, stripHTML, decodeHTML } from './utils'; import { jQuery as $, EventDispatcher } from './globals'; /** @@ -70,7 +70,7 @@ export default class GoToSlide { href: '#', 'class': classes, tabindex: tabindex, - title: title + 'aria-label': stripHTML(decodeHTML(title)) }); addClickAndKeyboardListeners(this.$element, event => { diff --git a/src/scripts/utils.js b/src/scripts/utils.js index 6daa2409..dd4885d2 100644 --- a/src/scripts/utils.js +++ b/src/scripts/utils.js @@ -105,4 +105,17 @@ const $STRIP_HTML_HELPER = $('