jpuri / jpuri/html-to-draftjs

Have an error in IE9

Open
#16 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
163
Forks
104
PR merge metrics
No merged PRs in 30d

Description

It's works fine in FireFox and Chrome, but breaks completly in IE9.

Here is just one of the scripts that is throwing an error... SCRIPT600: Invalid target element for this operation.

import draftToHtml from 'draftjs-to-html';
const blocksFromHtml = htmlToDraft('<p></p>');

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the IE9 failure with the shown htmlToDraft('

') call and compare it with Firefox and Chrome. Inspect the compatibility of the html-to-draftjs entry point and the imported draftjs-to-html usage; done means the example no longer raises SCRIPT600 in IE9 while existing browsers continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.