Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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