When buttons with submenus are generated and look like this:

Code:
<a class="x-btn x-unselectable x-box-item x-toolbar-item x-btn-default-toolbar-small" hidefocus="on" unselectable="on" role="button" aria-hidden="false" aria-disabled="false" aria-label="Object" aria-haspopup="true" aria-owns="menu-1037" id="button-1036" tabindex="0" data-componentid="button-1036" style="left: 0px; margin: 0px; top: 0px;">
It will create a lot of warnings:
[aria-*] attributes do not have valid values

I was puzzled by this, as all attributes look valid. The problem is that
aria-owns="menu-1037"

refers to an object that is not present in DOM.
When i run a query, it will return NULL

document.querySelector('#menu-1037')

After pressing the button, it will create the menu and the query will succeeds.
It's hard to think about a "fix" for that, as we do not want these menus to be created.
There would have to be an override that adds this attribute when the menu is actually added to the DOM.

Any thoughts?

Mike