breezefront / module-breeze

Breeze Module
MIT License
37 stars 11 forks source link

Scripts is moving to body after save #73

Open bogdan-kashchei opened 1 week ago

bogdan-kashchei commented 1 week ago

I found a bug with moving scripts to body, You have file - Swissup\Breeze\Model\Filter and method process I created experiment and commented this code

       foreach ($this->domFilters as $filter) {
            $filter->process($document);
        }

I've set the HTML to a DomDocument object and then back to HTML, expecting no changes. However, after this process, the HTML structure was altered. Could you help fix this issue?

vovayatsyuk commented 1 week ago

Can you please attach the HTML content that this function receives?

bogdan-kashchei commented 1 week ago

Hi, i can atach only part of header and a start of body where problem was observed.

Screenshot 2024-11-15 at 10 12 38
vovayatsyuk commented 1 week ago

To fix this bug, I need to reproduce it first. To do so, I need HTML that causes this issue. Can you replace all sensitive information with dummy placeholders and post the HTML content?