diff --git a/examples/menubar/menubar-2/js/PopupMenuAction.js b/examples/menubar/menubar-2/js/PopupMenuAction.js index ec445dee05..76681e9208 100644 --- a/examples/menubar/menubar-2/js/PopupMenuAction.js +++ b/examples/menubar/menubar-2/js/PopupMenuAction.js @@ -100,7 +100,7 @@ PopupMenuAction.prototype.init = function () { PopupMenuAction.prototype.updateMenuStates = function () { - var item = this.domNode.querySelector('[rel="font-larger"]'); + var item = this.domNode.querySelector('[data-option="font-larger"]'); if (item) { if (this.actionManager.isMaxFontSize()) { item.setAttribute('aria-disabled', 'true'); @@ -110,7 +110,7 @@ PopupMenuAction.prototype.updateMenuStates = function () { } } - var item = this.domNode.querySelector('[rel="font-smaller"]'); + var item = this.domNode.querySelector('[data-option="font-smaller"]'); if (item) { if (this.actionManager.isMinFontSize()) { item.setAttribute('aria-disabled', 'true'); @@ -123,7 +123,7 @@ PopupMenuAction.prototype.updateMenuStates = function () { // Update the radio buttons for font, in case they were updated using the larger // smaller font menu items - var rbs = this.domNode.querySelectorAll('[rel="font-size"] [role=menuitemradio]'); + var rbs = this.domNode.querySelectorAll('[data-option="font-size"] [role=menuitemradio]'); for (var i = 0; i < rbs.length; i++) { var rb = rbs[i]; diff --git a/examples/menubar/menubar-2/js/PopupMenuItemAction.js b/examples/menubar/menubar-2/js/PopupMenuItemAction.js index a592890c18..0a7f866e3f 100644 --- a/examples/menubar/menubar-2/js/PopupMenuItemAction.js +++ b/examples/menubar/menubar-2/js/PopupMenuItemAction.js @@ -59,14 +59,14 @@ MenuItem.prototype.activateMenuitem = function (node) { var role = node.getAttribute('role'); var value = node.textContent; - var option = node.getAttribute('rel'); + var option = node.getAttribute('data-option'); var item; // flag is used to signal whether a menu should close or not // i.e. don't close if checkbox or radio menuitem is toggled var flag = true; if (typeof option !== 'string') { - option = node.parentNode.getAttribute('rel'); + option = node.parentNode.getAttribute('data-option'); } if (role === 'menuitem') { diff --git a/examples/menubar/menubar-2/menubar-2.html b/examples/menubar/menubar-2/menubar-2.html index 9f210d6f8d..aada5d65a6 100644 --- a/examples/menubar/menubar-2/menubar-2.html +++ b/examples/menubar/menubar-2/menubar-2.html @@ -54,7 +54,7 @@

Example