You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,11 @@ Code examples that accompany various MDN DOM and Web API documentation pages.
7
7
> These methods are simpler to maintain as the code lives beside the rest of the content.
8
8
> Only add examples to this repository if your example doesn't easily run on MDN pages for technical or security reasons.
9
9
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
+
10
15
## Repository contents
11
16
12
17
- 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