Clarifying how to apply aria-* attributes (#9843)

Provide explicit example of what "keep lowercase" means for `aria-*` attributes.
This commit is contained in:
cjshawMIT
2017-06-05 09:48:21 -05:00
committed by Brandon Dail
parent d2824165ae
commit 550b0220ca
+1 -1
View File
@@ -16,7 +16,7 @@ redirect_from:
React implements a browser-independent DOM system for performance and cross-browser compatibility. We took the opportunity to clean up a few rough edges in browser DOM implementations.
In React, all DOM properties and attributes (including event handlers) should be camelCased. For example, the HTML attribute `tabindex` corresponds to the attribute `tabIndex` in React. The exception is `aria-*` and `data-*` attributes, which should be lowercased.
In React, all DOM properties and attributes (including event handlers) should be camelCased. For example, the HTML attribute `tabindex` corresponds to the attribute `tabIndex` in React. The exception is `aria-*` and `data-*` attributes, which should be lowercased. For example, you can keep `aria-label` as `aria-label`.
## Differences In Attributes