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

Copy doesnt keep code block formatting on Firefox #347

Open
J3fftw1 opened this issue Jul 26, 2021 · 0 comments
Open

Copy doesnt keep code block formatting on Firefox #347

J3fftw1 opened this issue Jul 26, 2021 · 0 comments

Comments

@J3fftw1
Copy link

J3fftw1 commented Jul 26, 2021

Example page > https://developers.cloudflare.com/workers/runtime-apis/html-rewriter#document-handlers

Name Firefox
Version 90.0.2
Build ID 20210721174149

expected behavior: formatting will be kept when copying from the code block
actual behavior: It pastes like this

class DocumentHandler {  doctype(doctype) {    // An incoming doctype, such as <!DOCTYPE html>  }
  comments(comment) {    // An incoming comment  }
  text(text) {    // An incoming piece of text  }
  end(end) {    // The end of the document  }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant