Bug 1541454 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Reproduction steps:

1. Open developer console.
2. Open ```data:text/html,<input type="text" id="t"> <script> x = document.getElementById("t"); console.log(x.selectionDirection)</script>```
3. Observe output "forward".

Actual behaviour: output is "forward".
Expected behaviour: output is "none" (as specified in the note at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-direction).
Reproduction steps:

1. Use a Mac/OSX.
2. Open developer console.
3. Open ```data:text/html,<input type="text" id="t"> <script> x = document.getElementById("t"); console.log(x.selectionDirection)</script>```
4. Observe output "forward".

Actual behaviour: output is "forward".
Expected behaviour: output is "none" (as specified in the note at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-direction).
Reproduction steps:

1. Use a Mac/OSX.
2. Open developer console.
3. Open ```data:text/html,<input type="text" id="t"> <script> x = document.getElementById("t"); console.log(x.selectionDirection)</script>```
4. Observe output "forward".

Actual behaviour: output is "forward".
Expected behaviour: output is "none" (as specified in the note at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-direction).

Note: on Windows the expected behaviour is different.

Back to Bug 1541454 Comment 0