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

Furigana copy behavior inconsistent between Firefox and Chrome #1681

Open
jamesmaa opened this issue Dec 18, 2024 · 1 comment
Open

Furigana copy behavior inconsistent between Firefox and Chrome #1681

jamesmaa opened this issue Dec 18, 2024 · 1 comment
Labels
browser/chrome The issue is Chrome-only browser/firefox The issue is Firefox-only kind/bug The issue or PR is regarding a bug

Comments

@jamesmaa
Copy link
Collaborator

image

on chrome if you copy this it gives 食たべる but on firefox it gives 食べる

A workaround on chrome is to use custom CSS user-select: none

@jamesmaa jamesmaa added the kind/bug The issue or PR is regarding a bug label Dec 18, 2024
@Kuuuube Kuuuube added browser/chrome The issue is Chrome-only browser/firefox The issue is Firefox-only labels Dec 21, 2024
@alvinhochun
Copy link

Firefox seems to have more sophisticated behaviour for <ruby> compared to Chromium, as implemented for https://bugzilla.mozilla.org/show_bug.cgi?id=1130891 :

  • If the selection is completely within the ruby element, the <rt> ruby text is also copied.
  • Otherwise, the ruby text is excluded from copy.
  • Setting the config converter.html2txt.always_include_ruby forces the ruby text to always be copied.

And there is a follow-up issue for improving this behaviour even more: https://bugzilla.mozilla.org/show_bug.cgi?id=1722215

In contrast, I couldn't find anything related on the Chromium bug tracker. May be worth filing an issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser/chrome The issue is Chrome-only browser/firefox The issue is Firefox-only kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

No branches or pull requests

3 participants