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

Scripts is moving to body after save #73

Open
bogdan-kashchei opened this issue Nov 13, 2024 · 3 comments
Open

Scripts is moving to body after save #73

bogdan-kashchei opened this issue Nov 13, 2024 · 3 comments

Comments

@bogdan-kashchei
Copy link

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
Copy link
Member

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

@bogdan-kashchei
Copy link
Author

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
Copy link
Member

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?

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

2 participants