Skip to content

Commit 2a4dd31

Browse files
authored
Add browser support note (#349)
1 parent 0974819 commit 2a4dd31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Code examples that accompany various MDN DOM and Web API documentation pages.
77
> These methods are simpler to maintain as the code lives beside the rest of the content.
88
> Only add examples to this repository if your example doesn't easily run on MDN pages for technical or security reasons.
99
10+
## Browser support
11+
12+
When creating code examples for a technology that's not yet available in all major browsers, consider using [feature detection](https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Testing/Feature_detection) to fall back to a simpler behavior or inform the user that their browser is not yet supported.
13+
Do not specify supported browsers and their versions in code comments or prose, as this information quickly becomes outdated.
14+
1015
## Repository contents
1116

1217
- The "abort-api" directory contains an example of how to use the "Abort API" (aka [AbortSignal](https://dom.spec.whatwg.org/#interface-AbortSignal) and [AbortController](https://dom.spec.whatwg.org/#interface-abortcontroller)). [Run the example live](https://mdn.github.io/dom-examples/abort-api/).

0 commit comments

Comments
 (0)