Baseline Newly DOM

getHTML()

The getHTML() method of Element and ShadowRoot objects serializes an element's DOM to an HTML string.

Baseline Status
Newly Available
Since 2024-09-16
First Core Launch
Chrome 125
2024-05-14
Core-3 Stability
125d
Last: Safari (2024-09-16)
BCD Keys Mapped
2
Group: DOM

Browser Support Timeline

Chrome v125 (2024-05-14) Chrome Android v125 (2024-05-14) Edge v125 (2024-05-17) Firefox v128 (2024-07-09) Firefox for Android v128 (2024-07-09) Safari v18 (2024-09-16) Safari on iOS v18 (2024-09-16)
Green dot marks the first browser release (2024-05-14); blue dots show subsequent browser launches (+125d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Chrome desktop 125 2024-05-14
Chrome Android mobile 125 2024-05-14
Edge desktop 125 2024-05-17
Firefox desktop 128 2024-07-09
Firefox for Android mobile 128 2024-07-09
Safari desktop 18 2024-09-16
Safari on iOS mobile 18 2024-09-16

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
api.Element.getHTML DOM API 125d
api.ShadowRoot.getHTML DOM API 125d