Skip to content

Commit

Permalink
Merge pull request #5231 from davidkpiano/patch-1
Browse files Browse the repository at this point in the history
Updating "JSX Gotchas" docs for Custom Attributes
(cherry picked from commit 22b8952)
  • Loading branch information
jimfb authored and zpao committed Nov 10, 2015
1 parent 34bb99b commit 17761fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/02.3-jsx-gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ If you pass properties to native HTML elements that do not exist in the HTML spe
<div data-custom-attribute="foo" />
```

However, arbitrary attributes are supported on custom elements (those with a hyphen in the tag name or an `is="..."` attribute).

```javascript
<x-my-component custom-attribute="foo" />
```

[Web Accessibility](http://www.w3.org/WAI/intro/aria) attributes starting with `aria-` will be rendered properly.

```javascript
Expand Down

0 comments on commit 17761fa

Please sign in to comment.