-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Pad crashes on pasting html containing <li> #6665
Comments
@Gared Do you use Ubuntu by chance? I used Windows and just copy pasted the W3C example to my pad and it didn't do anything https://www.w3schools.com/html/tryit.asp?filename=tryhtml_lists_intro |
:) That example works for me too. Try this: https://archive.totalism.org/breaks_etherpad.html I think w3c one works because there's an ul around, which is technically mandatory. When copying from there , even if you just take a single item, Firefox makes another copy buffer: in addition to text/html Not sure how it all works there ... but in any case, it breaks on my example, and also copying from ChatGPT, if you don't also capture the before-beginning of the list, which includes the ul . |
That works unfortunately too on my instance https://pad.samtv.fyi/p/test |
Weird! For me, on that instance, with Chromium:
With Firefox:
|
The pad is still intact or did I misread the pad crash? |
Sorry, missed the question there, |
Env: Ubuntu + Firefox
Reproduce:
echo '<li>this crashes</li>' | xclip -selection clipboard -t text/html
(or just copy any html with a list item)
... and paste into a pad
Result
Discovered by trying to paste a ChatGPT response including a list of items into a pad.
The text was updated successfully, but these errors were encountered: