Skip to content

Safari incorrect capturing text from contentEditable after 1.0.0 version #2648

@vitaliy-fluxon

Description

@vitaliy-fluxon
  • You are using the latest version
  • You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:

Incorrect text capturing from div[contentEditable] in Safari browser

Chrome (expected):
image

Safari(unexpected):
image

All subsequent versions after 1.0.0 have the same bug, as i understand this changes has entailed current render behaviour

If i change version to 1.0.0 everything works as expected

Live example: https://codesandbox.io/s/focused-sky-ul7bf

Specifications:

  • html2canvas version tested with: 1.1.0 - 1.2.2
  • Browser & version: Safari, Version 14.1 (16611.1.21.161.6)
  • Operating system: macOS BigSur 11.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions