Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Attribute Contenteditable Removed By Minimize #109

Open
gizapp opened this issue Aug 22, 2022 · 0 comments
Open

HTML Attribute Contenteditable Removed By Minimize #109

gizapp opened this issue Aug 22, 2022 · 0 comments

Comments

@gizapp
Copy link

gizapp commented Aug 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant