From 978494c7574fb1bdb9fe2a419425405c027219a6 Mon Sep 17 00:00:00 2001 From: Brian Kardell Date: Wed, 1 Apr 2020 19:36:27 -0400 Subject: [PATCH] Update panel-set-two.mjs This should be setAttribute - I forgot that AOM isn't ready yet... without this it will be wrong except in chrome + flags, which seems bad :) --- panel-set-two.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-set-two.mjs b/panel-set-two.mjs index 66b1b66..22acdb8 100644 --- a/panel-set-two.mjs +++ b/panel-set-two.mjs @@ -156,10 +156,10 @@ // tabs are -1, they need to use roving focus :( tab.tabIndex = -1; - tab.role = "tab"; + tab.setAttribute("role", "tab"); tab.id = tabUId; tab.setAttribute("aria-controls", contentUId); - content.role = "tabpanel"; + content.setAttribute("role", "tabpanel"); content.tabIndex = 0; content.id = contentUId; tab._init = true;