Limited DOM API
api.Element.setHTML
Granular MDN Browser Compat Data support history across 9 tracked browsers.
Specification Area
DOM API
Standard track
First Core Launch
Firefox 148
2026-02-24
Core-3 Stability
Limbo (275d)
Last: Chrome (2026-03-10)
Baseline Feature
Limited / Unmapped
HTML setter methods
Browser Support Timeline
Notes (15)
Chrome: Chrome 105 to Chrome 118 (inclusive) supported this method with a significantly different specification.Chrome, Edge, Chr And, WV And: Before version 153, the<base> element was not removed from a configuration's allowlist, which could manipulate a document's relative URLs. See whatwg/html#12664.Chrome, Edge, Chr And, WV And: Before version 152, HTML is sanitized after parsing instead of during parsing. For example, text on either side of a removed element isn't merged into a single text node. See whatwg/html#12756.Firefox, FF And: The <base> element is not removed from a configuration's allowlist, potentially allowing manipulation of a document's relative URLs. See whatwg/html#12664.Firefox, FF And: Before version 159, HTML is sanitized after parsing instead of during parsing. For example, text on either side of a removed element isn't merged into a single text node. See whatwg/html#12756.Edge: Edge 105 to Edge 118 (inclusive) supported this method with a significantly different specification.Chr And: Chrome Android 105 to Chrome Android 118 (inclusive) supported this method with a significantly different specification.WV And: WebView Android 105 to WebView Android 118 (inclusive) supported this method with a significantly different specification.Samsung: Samsung Browser 20.0 to Samsung Browser 25.0 (inclusive) supported this method with a significantly different specification.Opera: Opera 91 to Opera 104 (inclusive) supported this method with a significantly different specification.Opera: Before version 137, the <base> element was not removed from a configuration's allowlist, which could manipulate a document's relative URLs. See whatwg/html#12664.Opera: Before version 136, HTML is sanitized after parsing instead of during parsing. For example, text on either side of a removed element isn't merged into a single text node. See whatwg/html#12756.Op And: Opera Android 72 to Opera Android 79 (inclusive) supported this method with a significantly different specification.Op And: Before version 103, the <base> element was not removed from a configuration's allowlist, which could manipulate a document's relative URLs. See whatwg/html#12664.Op And: Before version 102, HTML is sanitized after parsing instead of during parsing. For example, text on either side of a removed element isn't merged into a single text node. See whatwg/html#12756.Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 146 | 2026-03-10 | Supported |
| Firefox | desktop | 148 | 2026-02-24 | Supported |
| Safari | desktop | — | — | — |
| Edge | desktop | 146 | 2026-03-13 | Supported |
| Chrome Android | mobile | 146 | 2026-03-10 | Supported |
| Firefox for Android | mobile | 148 | 2026-02-24 | Supported |
| Safari on iOS | mobile | — | — | — |
| WebView Android | mobile | 146 | 2026-03-10 | Supported |
| WebView on iOS | mobile | — | — | — |
| Samsung Browser | mobile | 31.0 | 2026-09-23 | Supported |
| Opera | desktop | 130 | 2026-04-08 | Supported |
| Opera Android | mobile | 97 | 2026-04-16 | Supported |
| Deno | server | — | — | — |
| Node.js | server | — | — | — |
| Bun | server | — | — | — |
| Quest Browser | xr | — | — | — |
| Internet Explorer | desktop | — | — | — |