HTML source code minification does not work after the last update

Created on 14 January 2022, over 2 years ago
Updated 12 April 2023, about 1 year ago

Problem/Motivation

Hello, after the last update of this module from version 1.10 to version 1.11, I found that the minification of the HTML source code does not work on my site.

I found this is caused by code similar to the following:

<iframe srcdoc="<script>SOME JS</script>"></iframe>

If the HTML source code contains code similar to the following, everything works as expected.

<iframe srcdoc="<p>Hello world!</p>"></iframe>

The problem is probably the script tag in the iframe tag.

Can it be fixed?

Thank you.

EDIT:
I solved this problem by embedding the problematic part of the HTML code after the page load (by JS).

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024