Minimize removes the contenteditable attribute, which leads to major changes to the parsed HTML code
Example code:
const Minimize = require('minimize')
new Minimize().parse('<html><body><span contenteditable>hello world</span></body></html>')
Produces <html><body><span>hello world</span></body></html> where the attribute was removed. This means the user is no longer allowed to edit the "hello world" text in the span.
This can be worked around by using contenteditable="true" instead, but this defeats the purpose of minimizing the HTML
Minimize removes the
contenteditable
attribute, which leads to major changes to the parsed HTML codeExample code:
Produces
<html><body><span>hello world</span></body></html>
where the attribute was removed. This means the user is no longer allowed to edit the "hello world" text in the span.This can be worked around by using
contenteditable="true"
instead, but this defeats the purpose of minimizing the HTML