jsdom / whatwg-url

An implementation of the WHATWG URL Standard in JavaScript
https://jsdom.github.io/whatwg-url/
MIT License
371 stars 94 forks source link

Cursor resets on text entry #223

Closed karwa closed 1 year ago

karwa commented 2 years ago

Hi!

I really love the live URL viewer; I use it all the time when I need to quickly check something.

But there is one issue that is a little annoying: if I'm editing the middle of the URL, the cursor resets to the end each time I insert or delete a character.

Steps to reproduce:

  1. Visit the Live Viewer
  2. Enter some text in the "URL" box (it does not need to be a valid URL)
  3. Click within the text to move the cursor
  4. Insert or delete a character
  5. The cursor will jump to the end of the text

I'm using Safari Version 15.0 (16612.1.29.41.4, 16612), on macOS 11.6.

TimothyGu commented 2 years ago

It looks to be a WebKit-specific bug, as I don't see that effect on Firefox or Chrome (on Linux), but do see that in Epiphany (GNOME Web).

domenic commented 2 years ago

Can you open an issue on https://bugs.webkit.org/ ?