react-md-editor
react-md-editor copied to clipboard
Render crashing syntax bug
I've noticed that when you try for example add code like this:
<p align="center">
<img src="https://i.pinimg.com/originals/ec/b3/45/ecb3455c4ab0058ec05769a7e9f93e49.gif" />
</p>
and then by mistake if you remove the space between img and src
<p align="center">
<imgsrc="https://i.pinimg.com/originals/ec/b3/45/ecb3455c4ab0058ec05769a7e9f93e49.gif" />
</p>
this results in this error and failing to render anything.
Uncaught DOMException: Failed to execute 'createElement' on 'Document':
The tag name provided ('imgsrc="https:') is not a valid name.
This is UX breaking problem, which I think should be fixed quickly.
Is there any work on it?
That's simply the structure of HTML, there's nothing to fix for that besides not removing the space.
Any updates? There should be some event handler or event fired when that happens.