Skip to content

Commit

Permalink
Updating "JSX Gotchas" docs for Custom Attributes
Browse files Browse the repository at this point in the history
Adds note that custom attributes are supported on custom elements.
  • Loading branch information
davidkpiano committed Oct 21, 2015
1 parent a468eed commit 29939b7
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 29939b7

Please sign in to comment.