# Browser and platform compatibility

> Which browsers and versions Taggor supports, what a visitor with an older browser sees, and which sites and platforms the snippet runs on.

The snippet and the components run in current browsers. This page lists which ones, what a visitor with
an older browser sees, and the sites and platforms the snippet runs on.

## Supported browsers

| Browser           | Supported versions           | Engine                           |
| ----------------- | ---------------------------- | -------------------------------- |
| Chrome (desktop)  | The 2 latest stable versions | Chromium                         |
| Edge (desktop)    | The 2 latest stable versions | Chromium (same engine as Chrome) |
| Firefox (desktop) | The 2 latest stable versions | Gecko                            |
| Safari (macOS)    | The 2 latest major versions  | WebKit                           |
| Safari on iOS     | The 2 latest versions of iOS | WebKit                           |
| Chrome on Android | The 2 latest stable versions | Chromium                         |

On every browser and site on this page, six things hold, and the host page logs no error:

1. The component renders inside its own Shadow DOM and nothing of it leaks into the page.
2. The page's CSS does not change the component and the component's CSS does not change the page.
3. Props written as attributes reach the component, and an unsafe value is refused.
4. The component's events reach a listener on the page as `CustomEvent`.
5. Slots show the content the page wrote inside the tag.
6. A form inside a component submits without navigating the page.

## Older browsers

In a browser that lacks what the runtime needs (Custom Elements, Shadow DOM, ES modules) the loader does
nothing and the page stays intact. No component mounts, no error reaches the page, and the content you
wrote inside the tag stays visible ([Fallback content](https://taggor.dev/docs/fallback.md)).

Two older ranges can still reach your site, and they have limits:

- Safari before 16.4 and Firefox before 101 have no adoptable style sheets; the component styles itself
  with a `<style>` element, which needs the nonce of your Content-Security-Policy.
- Chrome before 98, Firefox before 94 and Safari before 15.4 have no `structuredClone`; the component
  shows but its events are not emitted.

## Sites and frameworks

On every site below a component renders the same way, whatever the page's own style sheet does. The
Taggor files always come from another origin.

| Site                        | Version                                                                     |
| --------------------------- | --------------------------------------------------------------------------- |
| Plain HTML page             | Static page                                                                 |
| Plain HTML page, strict CSP | The policy in [Install the snippet](https://taggor.dev/docs/snippet.md#content-security-policy) |
| Next.js (App Router)        | 16, static export hydrated by React 19                                      |
| React single-page app       | React 19, Vite, client-side routing                                         |
| WordPress                   | 7, block themes, component in a Custom HTML block                           |
| WordPress with Elementor    | Elementor 4, HTML widget                                                    |

Also on the same browsers: server-side rendering on Next.js (page load and client-side
navigation), fonts, keyboard navigation and form fields. See [Server-side rendering](https://taggor.dev/docs/ssr.md).

## Platform builders

The platform guides ([overview](https://taggor.dev/docs/platforms.md)) cover three placements of the snippet, in
Chromium, Firefox and WebKit:

- at the end of the page's `<body>`, where the footer code areas of Squarespace, Webflow, Wix and Framer
  put it;
- added by a tag manager after the page has loaded (Google Tag Manager);
- inside a frame (an `iframe` with `sandbox="allow-scripts"`), where a component mounts only within its
  own frame.

## Pages with an import map

The loader does not load a module before the page has finished parsing, so it does not disturb a page's
own import map, such as the one WordPress writes.
