wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wget-dev] wget2 | When clobering css files, remove intergity attribute


From: megous
Subject: [Wget-dev] wget2 | When clobering css files, remove intergity attribute from html (#393)
Date: Thu, 16 Aug 2018 12:39:34 +0000

New Issue was created.

Issue 393: https://gitlab.com/gnuwget/wget2/issues/393
Author:    megous
Assignee:  

Modern browsers disregard content of CSS files and scripts if integrity 
attribute on <link> element doesn't match the content of downloaded resource.

Example:

  wget -EHpk -nd -P output -e robots=off 
https://gist.github.com/SirCmpwn/ae4d1cdcca97ffeb2c35f0878d75dc17

Because ae4d1cdcca97ffeb2c35f0878d75dc17.html contains:

  <link crossorigin="anonymous" media="all" 
integrity="sha512-h5cEqWTuBT7ANPGSQLt1mH+ozRnf2uZHIo5hzaBUEaFGGVZkq/aXrTxFNXPfCm9ir2ztHtlW4AAMl2IxBKc1pQ=="
 rel="stylesheet" href="github-e6bb18b320358b77abe040d2eb46b547.css" />

The page show as if without CSS files loaded when open locally via a file: 
protocol in Firefox and possibly other browsers.

When 
integrity="sha512-h5cEqWTuBT7ANPGSQLt1mH+ozRnf2uZHIo5hzaBUEaFGGVZkq/aXrTxFNXPfCm9ir2ztHtlW4AAMl2IxBKc1pQ=="
 is removed manually, the page shows correctly.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/issues/393
You're receiving this email because of your account on gitlab.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]