Click here to download the Blitz Browser!

WPT

wpt / selection / getSelection.html

Spec: Selection API ↗

Runs: Chrome 155.0.8038.0 (wpt@b1a7025f8, 2026-09-02) | Firefox 157.0a1 (wpt@b1a7025f8, 2026-09-02) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a7884 (wpt@b1a7025f8, 2026-09-02) | Servo Servo 0.5 (wpt@2ccd2cbf8, 2026-09-01) | Blitz 7727414ca (wpt@a95401e4e, 2026-09-02)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total18/1818/1818/1818/1818/18NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
window.getSelection() instanceof SelectionPASSPASSPASSPASSPASS
window.getSelection() === window.getSelection()PASSPASSPASSPASSPASS
document.getSelection() instanceof SelectionPASSPASSPASSPASSPASS
document.getSelection() === document.getSelection()PASSPASSPASSPASSPASS
window.getSelection() === document.getSelection()PASSPASSPASSPASSPASS
Selection's range must initially be nullPASSPASSPASSPASSPASS
getSelection() on HTML document with null defaultView must be nullPASSPASSPASSPASSPASS
getSelection() on XML document with null defaultView must be nullPASSPASSPASSPASSPASS
window.getSelection() instanceof Selection in an iframe onloadPASSPASSPASSPASSPASS
document.getSelection() instanceof Selection in an iframe onloadPASSPASSPASSPASSPASS
window.getSelection() === document.getSelection() in an iframe onloadPASSPASSPASSPASSPASS
getSelection() inside and outside iframe must return different objects onloadPASSPASSPASSPASSPASS
getSelection() on HTML document with null defaultView must be null inside an iframe onloadPASSPASSPASSPASSPASS
window.getSelection() instanceof Selection in an iframe immediately after appendChildPASSPASSPASSPASSPASS
document.getSelection() instanceof Selection in an iframe immediately after appendChildPASSPASSPASSPASSPASS
window.getSelection() === document.getSelection() in an iframe immediately after appendChildPASSPASSPASSPASSPASS
getSelection() inside and outside iframe must return different objects immediately after appendChildPASSPASSPASSPASSPASS
getSelection() on HTML document with null defaultView must be null inside an iframe immediately after appendChildPASSPASSPASSPASSPASS