diff --git a/lib/checks/navigation/region.json b/lib/checks/navigation/region.json index cd9294c0bf..9c7055b149 100644 --- a/lib/checks/navigation/region.json +++ b/lib/checks/navigation/region.json @@ -2,7 +2,7 @@ "id": "region", "evaluate": "region-evaluate", "options": { - "regionMatcher": "dialog, [role=dialog], svg, iframe" + "regionMatcher": "dialog, [role=dialog], [role=alertdialog], svg, iframe" }, "metadata": { "impact": "moderate", diff --git a/test/checks/navigation/region.js b/test/checks/navigation/region.js index 9de49ad0ee..34b787c664 100644 --- a/test/checks/navigation/region.js +++ b/test/checks/navigation/region.js @@ -274,6 +274,14 @@ describe('region', function() { assert.isTrue(checkEvaluate.apply(checkContext, checkArgs)); }); + it('treats role=alertdialog elements as regions', function() { + var checkArgs = checkSetup( + '

This is random content.

Content
' + ); + + assert.isTrue(checkEvaluate.apply(checkContext, checkArgs)); + }); + it('treats svg elements as regions', function() { var checkArgs = checkSetup( '
Content
'