Bug 1562194 - update <fieldset> no name from legend text label audit rule from failure to warning. r=nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D36761

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Yura Zenevich 2019-07-04 10:38:46 +00:00
parent 459cd85753
commit 724ec6a79b
2 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ const formGroupingRule = function(accessible) {
isVisible(label));
return hasNameFromLegend ? null : {
score: FAIL,
score: WARNING,
issue: FORM_FIELDSET_NO_NAME_FROM_LEGEND,
};
default:

View File

@ -193,9 +193,9 @@ add_task(async function() {
["<fieldset> with no <legend>", "#fieldset-3",
{ score: FAIL, issue: FORM_FIELDSET_NO_NAME }],
["<fieldset> with aria-label", "#fieldset-4",
{ score: FAIL, issue: FORM_FIELDSET_NO_NAME_FROM_LEGEND }],
{ score: WARNING, issue: FORM_FIELDSET_NO_NAME_FROM_LEGEND }],
["<fieldset> with aria-labelledby", "#fieldset-5",
{ score: FAIL, issue: FORM_FIELDSET_NO_NAME_FROM_LEGEND }],
{ score: WARNING, issue: FORM_FIELDSET_NO_NAME_FROM_LEGEND }],
["Empty <h1>", "#heading-1", { score: FAIL, issue: HEADING_NO_NAME }],
["<h1> with inner content", "#heading-2", null],
["<h1> with white space inner content", "#heading-3",