Skip to content

Commit

Permalink
Update feature detection example
Browse files Browse the repository at this point in the history
  • Loading branch information
andypaicu authored Nov 20, 2024
1 parent e14d1ae commit ff53df5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ if (el instanceof HTMLUnknownElement) {
}
```

Alternatively if you want a more lightweight version and don't need to create an element you can use:

```JS
if (typeof HTMLPermissionElement === 'function') {
// PEPC supported
} else {
// PEPC not supported
}
```

More advanced feature detection (such as per-type) is not currently supported.

## Using PEPC
Expand Down

0 comments on commit ff53df5

Please sign in to comment.