Skip to content

Commit f34d85b

Browse files
committed
chore: Small comment cleanups.
1 parent a6528a1 commit f34d85b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/screenreader/aria_monkey_patcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ document.createElementNS = function (namepspaceURI, qualifiedName) {
4444

4545
const oldElementSetAttribute = Element.prototype.setAttribute;
4646
// TODO: Replace these cases with property augmentation here so that all aria
47-
// behavior is defined within this file.
47+
// behavior is defined within the plugin.
4848
const ariaAttributeAllowlist = ['aria-disabled', 'aria-selected'];
4949

5050
Element.prototype.setAttribute = function (name, value) {
@@ -56,7 +56,7 @@ Element.prototype.setAttribute = function (name, value) {
5656
if (
5757
aria.isCurrentlyMutatingAriaProperty() ||
5858
ariaAttributeAllowlist.includes(name) ||
59-
!name.startsWith('aria-')
59+
(!name.startsWith('aria-') && name !== 'role')
6060
) {
6161
oldElementSetAttribute.call(this, name, value);
6262
}

src/screenreader/block_svg_utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function computeLevelInWorkspace(block: Blockly.BlockSvg): number {
7373
export function recomputeAllWorkspaceAriaTrees(
7474
workspace: Blockly.WorkspaceSvg,
7575
) {
76-
// TODO: Do this efficiently (probably increementally).
76+
// TODO: Do this efficiently (probably incrementally).
7777
workspace
7878
.getTopBlocks(false)
7979
.forEach((block) => recomputeAriaTreeItemDetailsRecursively(block));

0 commit comments

Comments
 (0)