diff --git a/content/warnings/invalid-aria-prop.md b/content/warnings/invalid-aria-prop.md index 53ebdd9bc4..63d5522b64 100644 --- a/content/warnings/invalid-aria-prop.md +++ b/content/warnings/invalid-aria-prop.md @@ -1,11 +1,16 @@ --- -title: Invalid ARIA Prop Warning +title: 警告:非法的 ARIA Prop layout: single permalink: warnings/invalid-aria-prop.html --- -The invalid-aria-prop warning will fire if you attempt to render a DOM element with an aria-* prop that does not exist in the Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties). +当你试图渲染一个 DOM 元素,并且它的 aria-* 属性不存在于 WAI[1]-ARIA[2] [规范](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties)中时,会出现 invalid-aria-prop 警告。 -1. If you feel that you are using a valid prop, check the spelling carefully. `aria-labelledby` and `aria-activedescendant` are often misspelled. +1. 如果你认为你使用的是合法的属性,仔细检查拼写。`aria-labelledby` 和 `aria-activedescendant` 常常会被拼错。 -2. React does not yet recognize the attribute you specified. This will likely be fixed in a future version of React. However, React currently strips all unknown attributes, so specifying them in your React app will not cause them to be rendered \ No newline at end of file +2. React 还无法识别你指定的属性。这可能会在 React 的未来版本中被修复。但是,React 目前会去除所有未知属性,因此即使在 React 应用中指定这些属性也无法使它们渲染。 + +**译注:** + + [1] WAI:Web Accessibility Initiative,Web 无障碍计划
+ [2] ARIA:Accessible Rich Internet Application,无障碍丰富互联网应用程序