From 5627a23991857639841127d9851e47458cc8f444 Mon Sep 17 00:00:00 2001 From: cjshawMIT Date: Fri, 2 Jun 2017 15:39:02 -0400 Subject: [PATCH] Clarifying how to apply aria-* attributes Provide explicit example of what "keep lowercase" means for `aria-*` attributes. --- docs/docs/reference-dom-elements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference-dom-elements.md b/docs/docs/reference-dom-elements.md index 660e04a52f03..1f32eb22bb63 100644 --- a/docs/docs/reference-dom-elements.md +++ b/docs/docs/reference-dom-elements.md @@ -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