WPT
wpt / selection / contenteditable / initial-selection-on-focus.tentative.html?span
Spec: Selection API ↗
Runs: Chrome 155.0.8042.0 (wpt@4eb09bcd9, 2026-09-04) | Firefox 157.0a1 (wpt@c3fcbf4ba, 2026-09-04) | Safari 251 preview (wpt@e7122b73f, 2026-09-04) | Ladybird 1.0-52f0f (wpt@a1ecd0c09, 2026-09-04) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 51/51 | 51/51 | 50/51 | 33/51 | 51/51 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| empty editor should set focus to start of it | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to start of the text node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the first <br> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to start of the text node in the <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node in the <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the first <br> node in the <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <b> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <i> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <u> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <s> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <code> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <a> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the empty <foobar> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <input> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <img> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to start of the text node in the second <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node in the second <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to start of the text node in the first <span> node #1 | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to start of the text node in the first <span> node #2 | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node in the first <span> node #1 | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node in the first <span> node #2 | PASS | PASS | PASS | FAIL | PASS | — |
| editor should set selection to start of the text node in the second <span> node since the text node in the first <span> node is only whitespaces | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node in the second <span> node since the text node in the first <span> node is only whitespaces | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to start of the text node in the second <span> node even if there is a whitespace only text node before the first <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should set selection to before the <br> node in the second <span> node even if there is a whitespace only text node before the first <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection before the non-editable <span> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection before the non-editable <span> node even if it has a text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable <span> node even if it has a <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable empty <span> node followed by a text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable <span> node having a text node and followed by another text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable <span> node having a <br> node and followed by a text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable empty <span> node followed by a <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable <span> node having text node and followed by a <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection before the non-editable <span> node having a <br> node and followed by another <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself when there is only empty inline elements before the non-editable node before first editable text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself when there is only empty inline elements before the non-editable node having a text node before first editable text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself when there is only empty inline elements before the non-editable node having a <br> node before first editable text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself when there is only empty inline elements before the non-editable node before first editable <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself when there is only empty inline elements before the non-editable node having a text node before first editable <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself when there is only empty inline elements before the non-editable node having a <br> node before first editable <br> node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to the first editable text node in the first <span> node even if followed by a non-editable node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection to the first editable text node in the first <span> node even if followed by a non-editable node having another text node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection to the first editable text node in the first <span> node even if followed by a non-editable node having a <br> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection to the first editable <br> node in the first <span> node even if followed by a non-editable node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection to the first editable <br> node in the first <span> node even if followed by a non-editable node having a text node | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to the first editable <br> node in the first <span> node even if followed by a non-editable node having a <br> node | PASS | PASS | PASS | PASS | PASS | — |
| editor should collapse selection to start of itself if first content is an input element | PASS | PASS | PASS | FAIL | PASS | — |
| editor should collapse selection to start of itself if first content is an textarea element | PASS | PASS | PASS | FAIL | PASS | — |
| editor shouldn't reset selection when it gets focus again | PASS | PASS | FAIL | PASS | PASS | — |