wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Typo in style tag crashes the browser with an infinite loop

Open essmahr opened this issue 3 years ago • 0 comments

Expected behavior.

Froala leaves <style> tags alone.

Actual behavior.

a typo in a <style> tag will crash the browser.

Steps to reproduce the problem.

Initialize the editor with a typo in a style tag, for example:

<style>
  /* note the missing closing bracket */
  .tag {
</style>

hello

See this codesandbox for a reproduction: https://codesandbox.io/s/froala-core-sandbox-forked-bxqtk3?file=/src/index.js

Editor version.

latest (v.4.0.14)

OS.

macOS 12.2.1

Browser.

reproduced on Chrome, Firefox

Screenshot.
image

essmahr avatar Aug 31 '22 22:08 essmahr