Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathankingston/sri-encoding-issue
SRI encoding issue
https://github.com/jonathankingston/sri-encoding-issue
Last synced: about 1 month ago
JSON representation
SRI encoding issue
- Host: GitHub
- URL: https://github.com/jonathankingston/sri-encoding-issue
- Owner: jonathanKingston
- Created: 2015-09-02T02:20:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T21:09:34.000Z (over 9 years ago)
- Last Synced: 2024-04-17T02:07:35.372Z (9 months ago)
- Language: HTML
- Size: 1.78 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SRI encoding issue
When using OpenSSL or sri-toolbox there appears to be no issue parsing the code procided by moment.js however Chrome seems to have an issue (Other people have reported this to me however not sure all the version numbers yet).
## Reproduction steps
- npm install
- node index.js
- go to: localhost:3000
- go to: localhost:3000/part (This is a cut down script with the offending chars)## Other offending files
parser.js in this directory has created these files (Not always valid JS however the integrity checks are what we care about) this is produced by spliting up moment.js
- Single chars (no issues here)
- go to: localhost:3000/out.html
- Two chars (see logs)
- go to: localhost:3000/out1-0.html
- go to: localhost:3000/out1-1.html## Offending files
- public/moment.js (Whole moment.js with locales)
- public/part2.js (Isolated character that is causing an issue in moment.js)## Confirmed browsers
- Chrome Linux 46.0.2478.0 dev