Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Custom Elements can't be self closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Frampton authored and Robert-Frampton committed Oct 30, 2017
1 parent 325ca46 commit de92e32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/docs/guides/web-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ However, with the help of the [metal-web-component](https://www.npmjs.com/packag
plain HTML.

```xml
<my-component title="Hello, World" />
<my-component title="Hello, World"></my-component>
```

</article>
Expand Down Expand Up @@ -88,7 +88,7 @@ defineWebComponent('my-component', MyComponent);
Now that the web component is defined, it can be invoked in plain html.

```xml
<my-component message="This is a web component" />
<my-component message="This is a web component"></my-component>
```

This will then result in the following HTML on the page.
Expand All @@ -101,7 +101,7 @@ If you would like the component's markup to be rendered using the Shadow DOM,
simply set the `useshadowdom` attribute to `true` when calling the web component.

```xml
<my-component message="This is a web component" useshadowdom="true" />
<my-component message="This is a web component" useshadowdom="true"></my-component>
```

This means that any styling on the page will not cascade to your component's
Expand Down

0 comments on commit de92e32

Please sign in to comment.