Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo page at http://incaseofstairs.com/jsdiff/ renders newlines wrong on Firefox #575

Open
ExplodingCabbage opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@ExplodingCabbage
Copy link
Collaborator

Steps to repro:

  • Open the page in Firefox
  • Populate the first input box with a single line of text (if that's not how it is already)
  • Press the Enter key to insert a newline
  • Observe that the single line break that got entered had height equal to the entire height of the input box, and that the initial line of text has been scrolled off-screen.

Not sure of the cause yet. Googling stuff about contenteditable and Firefox I see some Stack Overflow posts about newlines being handled differently between Firefox and Chrome but I dunno if it's up to date nor if it's pertinent to the specific behaviour described above; I will have to dig into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant