Bug 1562194 - update links to MDN since the wording and thus MDN doc headings are updated as well. r=mtigley
authorYura Zenevich <yura.zenevich@gmail.com>
Thu, 04 Jul 2019 14:21:41 +0000
changeset 544143 bd80bd3877207544ef373aa81efaba6566f318e4
parent 544142 e81baf6e08736d1b5e81d3618d8e064ea9d734e1
child 544144 44acade85bf20f114e3d9a64c446bed5c0124112
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmtigley
bugs1562194
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1562194 - update links to MDN since the wording and thus MDN doc headings are updated as well. r=mtigley Differential Revision: https://phabricator.services.mozilla.com/D36763
devtools/client/accessibility/constants.js
--- a/devtools/client/accessibility/constants.js
+++ b/devtools/client/accessibility/constants.js
@@ -112,38 +112,35 @@ exports.A11Y_CONTRAST_LEARN_MORE_LINK =
   "Color_contrast?utm_source=devtools&utm_medium=a11y-panel-checks-color-contrast";
 
 const A11Y_TEXT_LABEL_LINK_BASE =
   "https://developer.mozilla.org/docs/Web/Accessibility/Understanding_WCAG/Text_labels_and_names" +
   "?utm_source=devtools&utm_medium=a11y-panel-checks-text-label";
 
 const A11Y_TEXT_LABEL_LINK_IDS = {
   [AREA_NO_NAME_FROM_ALT]:
-    "Use_alt_attribute_to_provide_a_name_for_areas_that_have_the_href_attribute",
-  [DIALOG_NO_NAME]: "Dialogs_should_have_a_name",
-  [DOCUMENT_NO_TITLE]: "Documents_must_have_a_title",
-  [EMBED_NO_NAME]: "Embedded_content_must_have_a_name",
-  [FIGURE_NO_NAME]: "Figures_with_optional_captions_should_have_a_name",
-  [FORM_FIELDSET_NO_NAME]: "Form_element_groups_must_have_a_name",
+    "Use_alt_attribute_to_label_<area>_elements_that_have_the_href_attribute",
+  [DIALOG_NO_NAME]: "Dialogs_should_be_labeled",
+  [DOCUMENT_NO_TITLE]: "Documents_must_have_a_<title>",
+  [EMBED_NO_NAME]: "Embedded_content_must_be_labeled",
+  [FIGURE_NO_NAME]: "Figures_with_optional_captions_should_be_labeled",
+  [FORM_FIELDSET_NO_NAME]: "<fieldset>_elements_must_be_labeled",
   [FORM_FIELDSET_NO_NAME_FROM_LEGEND]:
-    "Use_legend_element_to_provide_a_name_for_form_element_groups",
-  [FORM_NO_NAME]: "Form_elements_must_have_a_name",
+    "Use_<legend>_element_to_label_<fieldset>_elements",
+  [FORM_NO_NAME]: "Form_elements_must_be_labeled",
   [FORM_NO_VISIBLE_NAME]: "Form_elements_should_have_a_visible_text_label",
-  [FORM_OPTGROUP_NO_NAME_FROM_LABEL]:
-    "Use_label_attribute_to_provide_a_name_for_groupings_of_options",
-  [FRAME_NO_NAME]: "Frames_must_have_a_name",
-  [HEADING_NO_NAME]: "Headings_must_have_a_name",
-  [HEADING_NO_CONTENT]: "Headings_must_have_visible_text_content",
-  [IFRAME_NO_NAME_FROM_TITLE]: "Use_title_attribute_to_describe_iframe_content",
-  [IMAGE_NO_NAME]: "Content_with_images_must_have_a_name",
-  [INTERACTIVE_NO_NAME]: "Interactive_elements_must_have_a_name",
-  [MATHML_GLYPH_NO_NAME]:
-    "Use_alt_attribute_to_provide_a_name_for_MathML_glyphs",
-  [TOOLBAR_NO_NAME]:
-    "Toolbars_must_have_a_name_when_there_is_more_than_one_toolbar",
+  [FORM_OPTGROUP_NO_NAME_FROM_LABEL]: "Use_label_attribute_to_label_<optgroup>_elements",
+  [FRAME_NO_NAME]: "<frame>_elements_must_be_labeled",
+  [HEADING_NO_NAME]: "Headings_must_be_labeled",
+  [HEADING_NO_CONTENT]: "Headings_should_have_visible_text_content",
+  [IFRAME_NO_NAME_FROM_TITLE]: "Use_title_attribute_to_describe_<iframe>_content",
+  [IMAGE_NO_NAME]: "Content_with_images_must_be_labeled",
+  [INTERACTIVE_NO_NAME]: "Interactive_elements_must_be_labeled",
+  [MATHML_GLYPH_NO_NAME]: "Use_alt_attribute_to_label_<mglyph>_elements",
+  [TOOLBAR_NO_NAME]: "Toolbars_must_be_labeled_when_there_is_more_than_one_toolbar",
 };
 
 const A11Y_TEXT_LABEL_LINKS = {};
 for (const key in A11Y_TEXT_LABEL_LINK_IDS) {
   A11Y_TEXT_LABEL_LINKS[key] =
     `${A11Y_TEXT_LABEL_LINK_BASE}#${A11Y_TEXT_LABEL_LINK_IDS[key]}`;
 }
 exports.A11Y_TEXT_LABEL_LINKS = A11Y_TEXT_LABEL_LINKS;