gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file
GNU Affero General Public License v3.0
15.16k stars 994 forks source link

The `white-space` attr will be removed after saving in Safari #1462

Closed tianzhich closed 2 months ago

tianzhich commented 4 months ago

Describe the bug Some websites saved in Safari may have styling issues because the white-space attribute in the saved stylesheet is removed. This problem does not occur in Chrome but does in Safari. For example, it happens on this website.

To Reproduce Steps to reproduce the behavior:

  1. Go to the website in Safari
  2. Click on SingleFile icon and save the page
  3. Open the page
  4. See error

Expected behavior The page should display correctly without style issues caused by missing white-space.

Screenshots Saved in Chrome:

image

Saved in Safari:

image

Environment

gildas-lormeau commented 4 months ago

Thank you for the report. Unfortunately, I cannot reproduce it. Here is a screenshot of the saved page displayed in Safari below. I've also attached the saved page in the zip file.

image

Big O Insights - DeriveIt (27_05_2024 15_26_23).html.zip

tianzhich commented 4 months ago

This is so strange, what are your Safari version and MacOS version?

gildas-lormeau commented 4 months ago

I'm using Safari 17.4.1 on macOS 14.4.1.

gildas-lormeau commented 2 months ago

I am closing the issue. Feel free to comment it if you have more info though.