Skip to content

Commit

Permalink
Merge pull request #21 from estherbrunner/patch-1
Browse files Browse the repository at this point in the history
Typos in # Feature Detection and Polyfilling
  • Loading branch information
mfreed7 authored Nov 11, 2023
2 parents f00cb06 + af45132 commit 4c99aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ To detect support for declarative Shadow DOM, something like this could be used:
```javascript
function supportsDeclarativeShadowDOM() {
return HTMLTemplateElement.prototype.hasOwnProperty("shadowrootmode");
return HTMLTemplateElement.prototype.hasOwnProperty("shadowRootMode");
}
```
Expand All @@ -570,7 +570,7 @@ document.querySelectorAll('template[shadowrootmode]').forEach(template => {
const shadowRoot = template.parentNode.attachShadow({ mode });
shadowRoot.appendChild(template.content);
template.remove();
}
});
```
# Example Custom Element
Expand Down

0 comments on commit 4c99aeb

Please sign in to comment.