Skip to content

Copy doesnt keep code block formatting on Firefox #347

@J3fftw1

Description

@J3fftw1

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  }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions